<template>
	<view>
		<!-- <view v-if="need_jump == 1" @tap="jumpNew" style="position: fixed; background: #000; opacity: 0.7; width: 100%; height: 100%; top: 0; left: 0; z-index: 999"></view> -->
		<!-- <view v-show="maskflag" style="position:absolute;z-index:99999;height:100%;width:100%;"><image src="./maskflag.png" style="height: 100%;width: 100%;"></image></view> -->

		<view v-if="page_type=='正常'">
			<popupwindow v-if="need_jump == 1 && live.last_qrcode_img" :showClose="0" visible="1"
					:contentImage="live.last_qrcode_img" :contentHeight="350" :outClickCanClose="false"></popupwindow>
			
				<popupwindow :showClose="1" :visible="visible" :contentImage="contentImage" :contentHeight="350"
					:outClickCanClose="false" @close="closePop"></popupwindow>
			
				<view v-if="kp_time && need_jump != 1 && live.kp_show_type != 2" class="kp_div"
					:style="'width:' + winWid + 'px;height:' + winHei + 'px;overflow: hidden;'">
					<view class="tiao" @tap="tiaoguo">{{ kp_time }}s 跳过</view>
					<image class="kpImg" :src="live.kp_img" :style="'width:' + winWid + 'px;height:' + winHei + 'px;'"></image>
				</view>
				<view :style="' height: 100%; ' + (tabtype == 'chat' ? 'display: flex;flex-direction: column;' : '') + ' '"
					v-else-if="live">
					<!-- <view @tap="bindGetUserInfo" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999" v-if="live.id != 364 && userInfoCheck == 0"></view> -->
					<view class="member_btn">
						<!-- <view class="btn" hoverClass="none" @tap="refreshmovie" v-if="!info_flag">
							 <text class="iconfont icon-gou" :style="'color:' + color_one + ';'"></text>
						    <view class="member_btn_txt" :style="'color:' + color_one + ';'">刷 新</view>
						</view> -->
						<view class="btn" hoverClass="none" @tap="showShareWindowFun" v-if="info_flag">
							<text class="iconfont icon-erweima" :style="'color:' + color_one + ';'"></text>
							<view class="member_btn_txt" :style="'color:' + color_one + ';'">分 享</view>
						</view>
					</view>
					<popupwindow v-if="need_jump != 1" :visible="live.live_gz_status" :titleString="live.gz_up_text"
						:contentImage="live.live_gz" :contentString="live.gz_down_text" :contentHeight="350" @close="closeClick"
						:outClickCanClose="true"></popupwindow>
			
					<view :class="'top_swiper ' + themes" v-if="live.live_banner_status == 1">
						<swiper class="carousel_swiper" :indicator-dots="true"
							:indicator-color="live.comment_auth == 1 ? '' : '#f4f4f4'"
							:indicator-active-color="live.comment_auth == 1 ? '' : '#4eb8b8'"
							:autoplay="live.comment_auth == 1 ? false : true" interval="4000" :circular="true"
							:style="'height:' + Height + ';'">
							<!-- <block wx:for="{{article_top}}" wx:key="key"> -->
							<swiper-item v-if="live.live_cover && !live.live_video && live.comment_auth == 1">
								<image class="carouselImg" :src="live.live_cover" mode="scaleToFill" @load="imgHeight"></image>
							</swiper-item>
							<swiper-item v-if="live.live_video && live.comment_auth == 1">
								<video controls :class="['page-section-video','page-section-video'+themes]" id="myVideo"
									:poster="live.live_cover" :src="live.live_video" object-fit="fill" @play="playVideo"
									@pause="pauseVideo" @ended="endedVideo" :autoplay="false"></video>
							</swiper-item>
							<swiper-item v-if="live.live_banner">
								<image class="carouselImg" :src="live.live_banner" mode="scaleToFill" @load="imgHeight"></image>
							</swiper-item>
							<swiper-item v-if="live.live_banner2">
								<image class="carouselImg" :src="live.live_banner2" mode="scaleToFill" @load="imgHeight">
								</image>
							</swiper-item>
							<swiper-item v-if="live.live_banner3">
								<image class="carouselImg" :src="live.live_banner3" mode="scaleToFill" @load="imgHeight">
								</image>
							</swiper-item>
							<swiper-item v-if="live.live_banner4">
								<image class="carouselImg" :src="live.live_banner4" mode="scaleToFill" @load="imgHeight">
								</image>
							</swiper-item>
							<swiper-item v-if="live.live_banner5">
								<image class="carouselImg" :src="live.live_banner5" mode="scaleToFill" @load="imgHeight">
								</image>
							</swiper-item>
							<swiper-item v-if="live.live_banner6">
								<image class="carouselImg" :src="live.live_banner6" mode="scaleToFill" @load="imgHeight">
								</image>
							</swiper-item>
							<swiper-item v-if="live.live_banner7">
								<image class="carouselImg" :src="live.live_banner7" mode="scaleToFill" @load="imgHeight">
								</image>
							</swiper-item>
							<swiper-item v-if="live.live_banner7">
								<image class="carouselImg" :src="live.live_banner7" mode="scaleToFill" @load="imgHeight">
								</image>
							</swiper-item>
							<swiper-item v-if="item" v-for="(item, index) in live.other_banners" :key="index">
								<image class="carouselImg" :src="item" mode="scaleToFill" @load="imgHeight"></image>
							</swiper-item>
			
							<!-- </block> -->
						</swiper>
					</view>
					<view :id="'content'+themes" :class="themes">
						<view :class="'page-section ' + themes"
							v-if="live.live_status == '1' && live.comment_auth == 0 && live.live_video == ''">
							<!-- #ifndef H5 -->
							<image :class="['page-section-video','page-section-video'+themes]" id="myVideo"
								:src="live.live_cover"></image>
							<!-- #endif-->
							<!-- #ifdef H5 -->
							<img :class="['page-section-video','page-section-video'+themes]" id="myVideo"
								:src="live.live_cover"></img>
							<!-- #endif -->
							<view class="timeover" v-if="live.live_djs_text && live_downtime_status">
								<view class="timeoverin" :style="{color:(live.tou_djs_color ? live.tou_djs_color:'#FFF')}">
									<view class="overnum">
										{{ live_downtime.day }}
										<em class="overch">天</em>
									</view>
									<view class="overnum">
										{{ live_downtime.hour }}
										<em class="overch">时</em>
									</view>
									<view class="overnum">
										{{ live_downtime.minute }}
										<em class="overch">分</em>
									</view>
									<view class="overnum">
										{{ live_downtime.second }}
										<em class="overch">秒</em>
									</view>
								</view>
								<h6 :style="{color:(live.tou_djs_color ? live.tou_djs_color:'#FFF')}">{{ live.live_djs_text }}</h6>
							</view>
							<view :class="['po_view','po_view'+themes]">
								<image v-if="live.num_show == '1'" class="k_num"
									src="/static/wxz_wzbagent/resource/images/photo/icon17_1.png"></image>
								<view class="text" v-if="live.num_show == '1'">{{ live.viewer_count }}</view>
							</view>
						</view>
						<view :class="'page-section ' + themes"
							v-if="live.live_status == '1' && live.comment_auth == 0 && live.live_video !== ''">
							<!-- live.auto_record == 1 ? true : false -->
							<video :autoplay="false" controls :class="['page-section-video','page-section-video'+themes]"
								id="myVideo" :poster="live.live_cover" :src="live.live_video" object-fit="fill"
								@play="playVideo" @pause="pauseVideo" @ended="endedVideo"></video>
							<view class="timeover" v-if="live.live_djs_text && live_downtime_status">
								<view class="timeoverin">
									<view class="overnum">
										{{ live_downtime.day }}
										<em class="overch">天</em>
									</view>
									<view class="overnum">
										{{ live_downtime.hour }}
										<em class="overch">时</em>
									</view>
									<view class="overnum">
										{{ live_downtime.minute }}
										<em class="overch">分</em>
									</view>
									<view class="overnum">
										{{ live_downtime.second }}
										<em class="overch">秒</em>
									</view>
								</view>
								<h6>{{ live.live_djs_text }}</h6>
							</view>
							<view :class="['po_view','po_view'+themes]">
								<image v-if="live.num_show == '1'" class="k_num"
									src="/static/wxz_wzbagent/resource/images/photo/icon17_1.png"></image>
								<view class="text" v-if="live.num_show == '1'">{{ live.viewer_count }}</view>
							</view>
						</view>
						<view :class="'page-section ' + themes" @tap="showFull" v-show="live.live_status == '2'">
							<!-- <image class="page-section-video" id="myVideo"  src="{{live.live_cover}}" wx:if="{{liveNetworkStatus == -1}}"></image> -->
							<video :src="stream" :show-bottom-progress="false" play-btn-position="bottom" :autoplay="false"
								style="width: 100%; height: 100%; display: inline-block; line-height: 0; overflow: hidden; position: relative"
								:show-progress="false" :show-fullscreen-btn="true" :show-center-play-btn="true"
								:enable-progress-gesture="false" object-fit="fill" :poster="live.live_cover"
								:class="['page-section-video','page-section-video'+themes]" v-if="streamType == 1"
								id="myVideo"></video>
							<view :class="['po_view','po_view'+themes]">
								<image v-if="live.num_show == '1'" class="k_num"
									src="/static/wxz_wzbagent/resource/images/photo/icon17_1.png"></image>
								<view class="text" v-if="live.num_show == '1'">{{ live.viewer_count }}</view>
							</view>
						</view>
						<view :class="'page-section ' + themes" @tap="showFull" v-show="live.live_status == '3'">
							<video controls class="page-section-video" id="myVideo" :autoplay="false" :poster="live.live_cover"
								:src="stream" object-fit="fill" v-if="streamType == 1">
							</video>
							<view :class="['po_view','po_view'+themes]">
								<image v-if="live.num_show == '1'" class="k_num"
									src="/static/wxz_wzbagent/resource/images/photo/icon17_1.png"></image>
								<view class="text" v-if="live.num_show == '1'">{{ live.viewer_count }}</view>
							</view>
						</view>
			
						<view class="live_bg2" v-if="themes == 'themes_7'"></view>
						<!-- 投诉按钮 -->
						<navigator class="toushu" url="/wxz_wzbagent/pages/tousu/tousu"
							v-if="live.show_toushu == 1 && show_index != 0">
							<image class="toushu_img" src="/static/wxz_wzbagent/resource/images/photo/toushu.png"></image>
							<view class="toushu_text">投诉</view>
						</navigator>
						<!-- 背景音乐 -->
						<block v-if="live.live_mp3_status == 1">
							<view :class="'music ' + (on ? 'on' : '')">
								<image src="/static/wxz_wzbagent/resource/images/music-o.png"
									style="width: 60rpx; height: 60rpx" @tap="stop"></image>
							</view>
						</block>
						<view :class="'seat' +themes">
			
						</view>
						<!-- 滚动广告 -->
						<view :class="['gun_ad','gun_ad'+themes]" v-if="live.rollcontent !== ''">
							<view class="content-box">
								<!-- :animation="animationData" -->
								<view :class="['content-text','content-text'+themes]">
									<marquee behavior="scroll" direction="left"><text id="text"
											:style="'color:' + color_one + ';'">{{ live.rollcontent }}</text></marquee>
								</view>
							</view>
						</view>
			
						<!-- tab -->
						<view :class="'page-tab ' + themes" v-if="themes !== 'themes_zdy'">
							<view @tap="bindtab"
								:class="['page-tab-item ' + (tab == item.id ? 'selected' : ''),'page-tab-item'+themes]"
								:data-type="item.typename" :data-name="item.name" :data-id="item.id" :data-navurl="item.navurl"
								:data-sort="index" v-for="(item, index) in nav" :key="index">
								<view class="page-tab-type">
									<text>{{ item.name }}</text>
								</view>
							</view>
							<view class="page-tab-item" v-if="live.live_wl_status == 1" @click="goLink(live.live_wl)">
								<view class="page-tab-type">
									<text>{{ live.wl_name }}</text>
								</view>
								<!-- <navigator style="width: 100%; height: 100%">
			                    
			                </navigator> -->
							</view>
						</view>
						<view class="page-tab" v-else>
							<view @tap="bindtab" class="page-tab-item" :data-type="item.typename" :data-id="item.id"
								:data-navurl="item.navurl" :data-name="item.name" :data-sort="index"
								:style="'color:' + (tab == item.id ? live.color_three : live.color_one) + ';background-color:' + (tab == item.id ? live.color_one : live.color_three) + ';'"
								v-for="(item, index) in nav" :key="index">
								<view class="page-tab-type">
									<text>{{ item.name }}</text>
								</view>
							</view>
							<view class="page-tab-item" v-if="live.live_wl_status == 1">
								<navigator :url="live.live_wl" style="width: 100%; height: 100%">
									<view class="page-tab-type">
										<text>{{ live.wl_name }}</text>
									</view>
								</navigator>
							</view>
						</view>
						<!-- 详情页 -->
						<block v-if="tabtype == 'intro'">
							<view :class="'page-dec ' + themes">
								<!-- <template is="wxParse" :data="wxParseData:WxParseListArr[tab_id]"></template> -->
								<mp-html :content="WxParseListArr[tab_id]"></mp-html>
							</view>
						</block>
						<!-- 报名 -->
						<block v-if="tabtype == 'enroll'">
							<view :class="'page-enroll ' + themes" :style="'background-color:' + color_two + ';'">
								<!-- parse <template is="enroll" :data="live:live,tab:tab,enroll_sort:enroll_sort,apply_param_name,apply_param_name,enroll_status:enroll_status,enroll_fields:enroll_fields,images:apply_param_images,apply_param_images_other:apply_param_images_other,apply_param_images_other2:apply_param_images_other2,video_url:apply_param_video_url,video_other_url:apply_param_video_other_url,video_other2_url:apply_param_video_other2_url,music_url:apply_param_music_url,bao_group:bao_group,apply_param_bao_group:apply_param_bao_group,isShow:isShow,apply_param_groups:apply_param_groups,isShowGroups:isShowGroups,agreement_content,showAgreement,enroll_content,color_status,color_one,color_two,color_three,multiIndex:multiIndex,apply_param_region:apply_param_region"></template> -->
								<block name="enroll">
									<view class="apply_container" v-if="enroll_status == 0"
										:style="live.enroll_height != 0 && live.enroll_height != null ? 'height:' + live.enroll_height + 'rpx;' : ''">
										<block v-if="item.show == 1" v-for="(item, index) in enroll_fields" :key="index">
											<view class="apply_row apply_images_row" v-if="item.name == 'images'">
												<text class="apply_check" v-if="item.require == 1">*</text>
												<view class="apply_name image">
													<view class="apply_images_text" :style="'color:' + color_one + ';'">
														{{ item.value }}
													</view>
													<view class="apply_images_tips" :style="'color:' + color_one + ';'">
														{{ item.placeholder }}
													</view>
												</view>
												<view class="apply_value apply_images_value">
													<view v-for="(item1, index1) in apply_param_images" :key="index1"
														class="apply_images fl m_r">
														<image mode="aspectFit" :src="item1" class="apply_images fl m_r">
														</image>
														<text @tap="applyRemoveImg" class="iconfont icon-shanchu remove_img"
															:data-id="index1"></text>
													</view>
													<view @tap="applyUploadImg"
														:class="'apply_add bg_gray fl t_c h6 t_gray9 ' + apply_param_images.length"
														v-if="apply_param_images.length < 5">
														<text class="iconfont icon-jiahao1"></text>
														<view class="apply_add_txt">添加照片</view>
													</view>
												</view>
											</view>
			
											<view class="apply_row apply_images_row" v-else-if="item.name == 'images_other'">
												<text class="apply_check" v-if="item.require == 1">*</text>
												<view class="apply_name image">
													<view class="apply_images_text" :style="'color:' + color_one + ';'">
														{{ item.value }}
													</view>
													<view class="apply_images_tips" :style="'color:' + color_one + ';'">
														{{ item.placeholder }}
													</view>
												</view>
												<view class="apply_value apply_images_value">
													<view v-for="(item1, index1) in apply_param_images_other" :key="index1"
														class="apply_images fl m_r">
														<image mode="aspectFit" :src="item1" class="apply_images fl m_r">
														</image>
														<text @tap="applyRemoveImgOther"
															class="iconfont icon-shanchu remove_img" :data-id="index1"></text>
													</view>
													<view @tap="applyUploadImgOther"
														:class="'apply_add bg_gray fl t_c h6 t_gray9 ' + apply_param_images_other.length"
														v-if="apply_param_images_other.length < 5">
														<text class="iconfont icon-jiahao1"></text>
														<view class="apply_add_txt">添加照片</view>
													</view>
												</view>
											</view>
			
											<view class="apply_row apply_images_row" v-else-if="item.name == 'images_other2'">
												<text class="apply_check" v-if="item.require == 1">*</text>
												<view class="apply_name image">
													<view class="apply_images_text" :style="'color:' + color_one + ';'">
														{{ item.value }}
													</view>
													<view class="apply_images_tips" :style="'color:' + color_one + ';'">
														{{ item.placeholder }}
													</view>
												</view>
												<view class="apply_value apply_images_value">
													<view v-for="(item1, index1) in apply_param_images_other2" :key="index1"
														class="apply_images fl m_r">
														<image mode="aspectFit" :src="item1" class="apply_images fl m_r">
														</image>
														<text @tap="applyRemoveImgOther2"
															class="iconfont icon-shanchu remove_img" :data-id="index1"></text>
													</view>
													<view @tap="applyUploadImgOther2"
														:class="'apply_add bg_gray fl t_c h6 t_gray9 ' + apply_param_images_other2.length"
														v-if="apply_param_images_other2.length < 5">
														<text class="iconfont icon-jiahao1"></text>
														<view class="apply_add_txt">添加照片</view>
													</view>
												</view>
											</view>
			
											<view class="apply_row apply_images_row" v-else-if="item.name == 'video'">
												<text class="apply_check" v-if="item.require == 1">*</text>
												<view class="apply_name video">
													<view class="apply_images_text" :style="'color:' + color_one + ';'">
														{{ item.value }}
													</view>
													<view class="apply_images_tips" :style="'color:' + color_one + ';'">
														{{ item.placeholder }}
													</view>
												</view>
												<view class="apply_value apply_cover_value">
													<video class="apply_cover fl m_r" :autoplay="false"
														v-if="!(apply_param_video_url == '' ? true : false)"
														:src="apply_param_video_url"></video>
													<cover-image @tap="applyRemoveVideo" class="remove_img active"
														v-if="!(apply_param_video_url == '' ? true : false)"
														src="/static/wxz_wzbagent/resource/images/shanchu.png"></cover-image>
													<view @tap="applyUploadVideo" class="apply_add apply_cover_add"
														v-if="!(apply_param_video_url == '' ? false : true)">
														<text class="iconfont icon-jiahao1"
															:style="'color:' + themeColor.vs.iamge.add_icon + ';'"></text>
														<view class="apply_add_txt">添加视频</view>
													</view>
												</view>
											</view>
			
											<view class="apply_row apply_images_row" v-else-if="item.name == 'video_other'">
												<text class="apply_check" v-if="item.require == 1">*</text>
												<view class="apply_name video">
													<view class="apply_images_text" :style="'color:' + color_one + ';'">
														{{ item.value }}
													</view>
													<view class="apply_images_tips" :style="'color:' + color_one + ';'">
														{{ item.placeholder }}
													</view>
												</view>
												<view class="apply_value apply_cover_value">
													<video class="apply_cover fl m_r" :autoplay="false"
														v-if="!(apply_param_video_other_url == '' ? true : false)"
														:src="apply_param_video_other_url"></video>
													<cover-image @tap="applyRemoveVideoOther" class="remove_img active"
														v-if="!(apply_param_video_other_url == '' ? true : false)"
														src="/static/wxz_wzbagent/resource/images/shanchu.png"></cover-image>
													<view @tap="applyUploadVideoOther" class="apply_add apply_cover_add"
														v-if="!(apply_param_video_other_url == '' ? false : true)">
														<text class="iconfont icon-jiahao1"
															:style="'color:' + themeColor.vs.iamge.add_icon + ';'"></text>
														<view class="apply_add_txt">添加视频</view>
													</view>
												</view>
											</view>
			
											<view class="apply_row apply_images_row" v-else-if="item.name == 'video_other2'">
												<text class="apply_check" v-if="item.require == 1">*</text>
												<view class="apply_name video">
													<view class="apply_images_text" :style="'color:' + color_one + ';'">
														{{ item.value }}
													</view>
													<view class="apply_images_tips" :style="'color:' + color_one + ';'">
														{{ item.placeholder }}
													</view>
												</view>
												<view class="apply_value apply_cover_value">
													<video class="apply_cover fl m_r" :autoplay="false"
														v-if="!(apply_param_video_other2_url == '' ? true : false)"
														:src="apply_param_video_other2_url"></video>
													<cover-image @tap="applyRemoveVideoOther2" class="remove_img active"
														v-if="!(apply_param_video_other2_url == '' ? true : false)"
														src="/static/wxz_wzbagent/resource/images/shanchu.png"></cover-image>
													<view @tap="applyUploadVideoOther2" class="apply_add apply_cover_add"
														v-if="!(apply_param_video_other2_url == '' ? false : true)">
														<text class="iconfont icon-jiahao1"
															:style="'color:' + themeColor.vs.iamge.add_icon + ';'"></text>
														<view class="apply_add_txt">添加视频</view>
													</view>
												</view>
											</view>
			
											<view class="apply_row b_all" v-else-if="item.name == 'bao_group'">
												<text class="apply_check" v-if="item.require == 1">*</text>
												<view class="apply_name fl" :style="'color:' + color_one + ';'">{{ item.value }}
												</view>
												<view class="select-current" @tap.stop.prevent="openClose">
													<text class="current-name"
														:style="'color:' + color_one + ';'">{{ apply_param_bao_group ? apply_param_bao_group : '请选择' }}</text>
												</view>
												<view class="option-list" v-if="isShow">
													<text class="option" :style="'color:' + color_one + ';'"
														@tap.stop.prevent="optionTap" :data-id="item.id" :data-name="item.name"
														v-for="(item, index1) in bao_group" :key="index1">
														{{ item.name }}
													</text>
												</view>
											</view>
			
											<view class="apply_row b_all" v-else-if="item.name == 'linkage_groups'">
												<text class="apply_check" v-if="item.require == 1">*</text>
												<view class="apply_name fl" :style="'color:' + color_one + ';'">{{ item.value }}
												</view>
												<view class="select-current" @tap.stop.prevent="openCloseGroups">
													<picker mode="multiSelector" @change="bindMultiPickerChange"
														@columnchange="bindMultiPickerColumnChange" :value="multiIndex"
														:range="item.temp" :data-datas="item.datas" :data-temp="item.temp"
														:data-index="index">
														<view class="picker" :style="'color:' + color_one + ';'">
															<text class="current-name" :style="'color:' + color_one + ';'">
																{{ multiIndex[0] || multiIndex[0] == '0' ? item.temp[0][multiIndex[0]] + ',' + item.temp[1][multiIndex[1]] : '请选择' }}
															</text>
														</view>
													</picker>
												</view>
											</view>
			
											<view class="apply_row b_all" v-else-if="item.name == 'groups'">
												<text class="apply_check" v-if="item.require == 1">*</text>
												<view class="apply_name fl" :style="'color:' + color_one + ';'">{{ item.value }}
												</view>
												<view class="select-current" @tap.stop.prevent="openCloseGroups">
													<picker @change="bindPickerChange" :value="groupIndex" :range="item.select"
														:data-range="item.select">
														<view class="picker" :style="'color:' + color_one + ';'">
															<text class="current-name" :style="'color:' + color_one + ';'">
																{{ apply_param_groups ? apply_param_groups : '请选择' }}
															</text>
														</view>
													</picker>
			
													<!-- <text class="current-name" style="color:{{color_one}};">{{apply_param_groups ? apply_param_groups : '请选择'}}</text> {{ item.select[groupIndex] }}-->
												</view>
												<!-- <view class="option-list" wx:if="{{isShowGroups}}">
			                <text class="option" style="color:{{color_one}};" catchtap="optionTapGroups" wx:for="{{item.select}}" wx:key="idx" wx:for-item="select" data-id="{{idx}}" data-name="{{select}}">{{select}}</text>
			            </view> -->
											</view>
			
											<view class="apply_row b_all" v-else-if="item.name == 'region'">
												<text class="apply_check" v-if="item.require == 1">*</text>
												<view class="apply_name fl" :style="'color:' + color_one + ';'">{{ item.value }}
												</view>
												<view class="select-current" @tap.stop.prevent="openCloseGroups">
													<region-picker
														@change="commonChange($event, { name: 'apply_param_region' })"
														data-name="apply_param_region" :value="apply_param_region"
														:custom-item="customItem">
														<view class="picker" :style="'color:' + color_one + ';'">
															{{ apply_param_region[0] }}，{{ apply_param_region[1] }}，{{ apply_param_region[2] }}
														</view>
													</region-picker>
												</view>
											</view>
			
											<view class="apply_row apply_images_row" v-else-if="item.name == 'form_radio'">
												<text class="apply_check" style="margin-top: 10px"
													v-if="item.require == 1">*</text>
												<view class="apply_name fl" :style="'color:' + color_one + ';'">{{ item.value }}
												</view>
												<view class="apply_value apply_cover_value">
													<radio-group @change="commonChange" data-name="apply_param_form_radio">
														<label style="padding: 5px 10px" class="weui-cell weui-check__label"
															v-for="(select, index1) in item.placeholder" :key="select.idx">
															<view class="weui-cell__hd">
																<radio :value="select" :checked="form_radio.checked" />
															</view>
			
															<view class="weui-cell__bd"
																:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'">
																{{ select }}
															</view>
														</label>
													</radio-group>
												</view>
											</view>
			
											<view class="apply_row apply_images_row" v-else-if="item.name == 'pay'">
												<text class="apply_check" style="margin-top: 10px"
													v-if="item.require == 1">*</text>
												<view class="apply_name fl" :style="'color:' + color_one + ';'">{{ item.value }}
												</view>
												<view class="apply_value apply_cover_value">
													<radio-group @change="commonChange" data-name="apply_param_pay">
														<label style="padding: 5px 10px" class="weui-cell weui-check__label"
															v-for="(select, index1) in item.placeholder" :key="select.idx">
															<view class="weui-cell__hd">
																<radio :value="select" :checked="pay.checked" />
															</view>
			
															<view class="weui-cell__bd"
																:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'">
																{{ select }}
															</view>
														</label>
													</radio-group>
												</view>
											</view>
			
											<view class="apply_row apply_images_row" v-else-if="item.name == 'form_checkbox'">
												<text class="apply_check" style="margin-top: 10px"
													v-if="item.require == 1">*</text>
												<view class="apply_name fl" :style="'color:' + color_one + ';'">{{ item.value }}
												</view>
												<view class="apply_value apply_cover_value">
													<checkbox-group @change="checkboxChange1">
														<label style="padding: 5px 10px" class="weui-cell weui-check__label"
															v-for="(select, index1) in item.placeholder" :key="index1">
															<view class="weui-cell__hd">
																<checkbox :value="select" :checked="form_checkbox.checked" />
															</view>
			
															<view class="weui-cell__bd"
																:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'">
																{{ select }}
															</view>
														</label>
													</checkbox-group>
												</view>
											</view>
			
											<!-- 音频 -->
			
											<view class="apply_row apply_images_row" v-else-if="item.name == 'music'">
												<text class="apply_check" v-if="item.require == 1">*</text>
												<view class="apply_name image">
													<view class="apply_images_text" :style="'color:' + color_one + ';'">
														{{ item.value }}
													</view>
													<view class="apply_images_tips" :style="'color:' + color_one + ';'">
														{{ item.placeholder }}
													</view>
												</view>
												<view class="apply_value apply_cover_value">
													<audio class="apply_cover fl m_r"
														v-if="!(apply_param_music_url == '' ? true : false)"
														:src="apply_param_music_url" name="选手音频" controls loop></audio>
													<cover-image @tap="applyRemoveMusic" class="remove_img active"
														v-if="!(apply_param_music_url == '' ? true : false)"
														src="/static/wxz_wzbagent/resource/images/shanchu.png"></cover-image>
													<view @tap="applyUploadMusic" class="apply_add apply_cover_add"
														v-if="!(apply_param_music_url == '' ? false : true)">
														<text class="iconfont icon-jiahao1"></text>
														<view class="apply_add_txt">添加音频</view>
													</view>
												</view>
											</view>
			
											<!-- 文档 -->
			
											<view class="apply_row apply_images_row" v-else-if="item.name == 'document_1'">
												<text class="apply_check" v-if="item.require == 1">*</text>
												<view class="apply_name image">
													<view class="apply_images_text" :style="'color:' + color_one + ';'">
														{{ item.value }}
													</view>
													<view class="apply_images_tips" :style="'color:' + color_one + ';'">
														{{ item.placeholder }}
													</view>
												</view>
												<view class="apply_value apply_cover_value">
													<view @tap="applyUploadDocument" class="apply_add apply_cover_add"
														v-if="!document_url">
														<text class="iconfont icon-jiahao1"></text>
														<view class="apply_add_txt">上传文件</view>
													</view>
													<view @tap="applyUploadDocument" class="apply_add apply_cover_add" v-else>
														{{ document_url }}
													</view>
													<!--  <view @tap="applyUploadMusic" class="apply_add apply_cover_add" v-else>
			                                        {{ document_1_url }}
			                                    </view> -->
												</view>
											</view>
			
											<view class="apply_row"
												v-else-if="item.name == 'introduce' || item.name == 'content' || item.name == 'prize' || item.name == 'declaration' || item.name == 'past'"
												style="height: 120rpx">
												<text class="apply_check" v-if="item.require == 1">*</text>
												<view class="apply_value fl" style="height: 100%; width: 100%">
													<textarea @blur="bindApplyInput" :name="item.name" :data-name="item.name"
														:data-required="item.require == 1" maxlength="4000"
														:placeholder="item.placeholder"
														:placeholder-style="'color:' + color_one + ';'" value=""
														:style="'color:' + color_one + ';'"
														v-if="color_status == '1'"></textarea>
													<textarea @blur="bindApplyInput" :name="item.name" :data-name="item.name"
														:data-required="item.require == 1" maxlength="4000"
														:placeholder="item.placeholder" value=""
														:style="'color:' + color_one + ';'" v-else></textarea>
												</view>
											</view>
			
											<view class="signUpInfo" v-else-if="item.name == 'des'">
												<view class="siguTitle" :style="'margin-bottom: 20rpx;color:' + color_one">
													{{ item.value }}
												</view>
			
												<view class="signUploadTips" style="font-size: 15px">
													<!-- <template is="wxParse" :data="wxParseData:enroll_content.nodes"></template> -->
													<mp-html :content="article_enroll_content"></mp-html>
												</view>
											</view>
			
											<view class="apply_row" v-else-if="item.name == 'agreement'"
												style="background-color: #fff">
												<checkbox-group @change="checkboxChange">
													<checkbox name="box_check" value="1" @change="" class=""></checkbox>
													<text class="text-blue"
														:style="'color:' + (color_one ? color_one : '#C8AF82') + ';font-size: 15px;'">我已阅读并同意</text>
													<text class="text-blue"
														:style="'font-size: 15px;font-weight:700;color:' + (color_one ? color_one : '#C8AF82')"
														@tap="showAgreementFun" data-show="1">
														《{{ item.value }}》
													</text>
			
													<view v-if="showAgreement == 1" style="
			                                            z-index: 9999;
			                                            font-size: 15px;
			                                            width: 100%;
			                                            height: 100%;
			                                            padding: 10px 0% 50px;
			                                            position: fixed;
			                                            top: 0;
			                                            left: 0;
			                                            background: #fff;
			                                            overflow-y: auto;
			                                        ">
														<view class="signUploadTips">
															<!-- <template is="wxParse" :data="wxParseData:agreement_content.nodes"></template> -->
															<mp-html :content="article_agreement_content"></mp-html>
															<view style="height: 100px"></view>
														</view>
														<view @tap="showAgreementFun" data-show="0"
															:class="['apply_submit_btn','apply_submit_btn'+themes]" :style="
			                                                'color:' +
			                                                (color_three ? color_three : '#fff !important') +
			                                                ';background-color:' +
			                                                color_one +
			                                                ';position: fixed; bottom: 5%;left:50%;margin-left:-291.5rpx;'
			                                            ">
															关闭
														</view>
													</view>
												</checkbox-group>
											</view>
			
											<view class="apply_row b_all" v-else>
												<text class="apply_check" v-if="item.require == 1">*</text>
												<view class="apply_name fl" :style="'color:' + color_one + ';'">{{ item.value }}</view>
												<view class="apply_value fl">
													<input @blur="bindApplyInput" :name="item.name" :data-name="item.name"
														:data-required="item.require == 1" :placeholder="item.placeholder"
														:placeholder-style="'color:' + color_one + ';'" type="text" value=""
														v-if="color_status == '1'" :style="'color:' + color_one + ';'" />
													<input @blur="bindApplyInput" :name="item.name" :data-name="item.name"
														:data-required="item.require == 1" :placeholder="item.placeholder"
														placeholder-class="phcolor" type="text" value="" v-else />
												</view>
											</view>
										</block>
			
										<view class="apply_btn_wrap">
											<view @tap="applySubmit" :class="['apply_submit_btn','apply_submit_btn'+themes]"
												v-if="live.is_pay_bao == 1"
												:style="'color:' + color_three + ';background-color:' + color_one + ';'">
												{{ live.bao_submit_text ? live.bao_submit_text : '提交报名' }}
											</view>
											<view @tap="applySubmit" :class="['apply_submit_btn','apply_submit_btn'+themes]"
												v-if="live.is_pay_bao == 0"
												:style="'color:' + color_three + ';background-color:' + color_one + ';'">
												{{ live.bao_submit_text ? live.bao_submit_text : '提交报名' }}
											</view>
										</view>
									</view>
									<view class="apply_success w_100 t_gray6 h2 t_c"
										v-else-if="enroll_status == 1 && tab != 32321 && tab != 32322 && tab != 32323 && tab != 40712">
										<text class="iconfont icon-baomingchenggong" :style="'color:' + color_one + ';'"></text>
										<view class="apply_status_txt1" :style="'color:' + color_one + ';'">报名成功</view>
										<!-- <view class="apply_status_txt2" style="color:{{themeColor.vs.status.txt2}};">{{fileds.audit_success_content}}</view> -->
									</view>
									<view class="apply_success w_100 t_gray6 h2 t_c"
										v-else-if="enroll_status == 1 && tab == 32321">
										<image :src="enroll_sort" mode="widthFix" @tap="photoLivePreview"
											:data-url="enroll_sort" :show-menu-by-longpress="true"
											style="width: 100%; margin: 0"></image>
									</view>
									<view class="apply_success w_100 t_gray6 h2 t_c"
										v-else-if="enroll_status == 1 && tab == 32322">
										<image
											src="https://tovqb.top/addons/wxz_wzbagent/attachment/images/xcx_personal_bg/screenBaby/dark_blue_gz.jpg"
											mode="widthFix" @tap="photoLivePreview" :data-url="enroll_sort"
											:show-menu-by-longpress="true" style="width: 100%; margin: 0"></image>
									</view>
									<view class="apply_success w_100 t_gray6 h2 t_c"
										v-else-if="enroll_status == 1 && tab == 32323">
										<image
											src="https://tovqb.top/addons/wxz_wzbagent/attachment/images/xcx_personal_bg/screenBaby/dark_blue_mt.jpg"
											mode="widthFix" @tap="photoLivePreview" :data-url="enroll_sort"
											:show-menu-by-longpress="true" style="width: 100%; margin: 0"></image>
									</view>
									<view class="apply_success w_100 t_gray6 h2 t_c"
										v-else-if="enroll_status == 1 && tab == 40712">
										<image src="https://tovqb.top/attachment/images/banner/baoming_40712.png"
											mode="widthFix" @tap="photoLivePreview"
											data-url="https://tovqb.top/attachment/images/banner/baoming_40712.png"
											:show-menu-by-longpress="true" style="width: 100%; margin: 20px 0"></image>
									</view>
								</block>
							</view>
						</block>
						<!-- 投票 -->
						<block v-if="tabtype == 'vote'">
							<!-- <view :class="'page-vote ' + themes" :style="' background-color:' + color_two + ';'">
								<vote compName="vote" :data="{vote_data,live,vote,vote_downtime,rank_data,columnsurs,columnsurs_selected,article_intro_content,search,vote_load,rank_load,vote_page,rank_page,rid,is_vote_tab,is_vote_num,color_status,color_one,color_two,color_three,tab,today_rank_data,themes}"></vote>
							</view> -->
							<view :class="'page-vote ' + themes" :style="' background-color:' + color_two + ';'">
								<!-- parse <template is="vote" :data="live,vote,vote_downtime,vote_data,rank_data,columnsurs,columnsurs_selected,intro_content,search,vote_load,rank_load,vote_page,rank_page,rid,is_vote_tab,is_vote_num,color_status,color_one,color_two,color_three,tab"></template> -->
								<block name="vote">
									<block v-if="vote.vote_downtime_status == 4">
										<view class="rang_wrap" v-if="rank_data.length > 0">
											<view class="rang_item rang_item1">
												<image class="rang_icon"
													src="/static/wxz_wzbagent/resource/images/order_ico/rank2.png"></image>
												<view class="rank_head">
													<image class="rang_uhead" mode="widthFix" :src="rank_data[1]['pic']">
													</image>
												</view>
												<view class="rang_name">{{ rank_data[1]['name'] }}</view>
												<view class="rang_vote_count">{{ rank_data[1]['votes'] }}</view>
												<!-- <view class="rang_no">编号：{{rank_data[1]['sort']}}</view> -->
											</view>
											<view class="rang_item rang_item2"
												:style="'background-color:' + themeColor.vrl.bg + ';'">
												<view class="left_wing"
													:style="'border-color:' + themeColor.vrl.top_three.wing + ' transparent transparent;'">
												</view>
												<view class="right_wing"
													:style="'border-color:' + themeColor.vrl.top_three.wing + ' transparent transparent;'">
												</view>
												<image class="rang_icon"
													src="/static/wxz_wzbagent/resource/images/order_ico/rank1.png"></image>
												<view class="rank_head">
													<image class="rang_uhead" mode="widthFix" :src="rank_data[0]['pic']">
													</image>
												</view>
												<view class="rang_name">{{ rank_data[0]['name'] }}</view>
												<view class="rang_vote_count">{{ rank_data[0]['votes'] }}</view>
												<!-- <view class="rang_no">编号：{{rank_data[0]['sort']}}</view> -->
											</view>
											<view class="rang_item rang_item3"
												:style="'background-color:' + themeColor.vrl.bg + ';'">
												<image class="rang_icon"
													src="/static/wxz_wzbagent/resource/images/order_ico/rank3.png"></image>
												<view class="rank_head">
													<image class="rang_uhead" mode="widthFix" :src="rank_data[2]['pic']">
													</image>
												</view>
												<view class="rang_name">{{ rank_data[2]['name'] }}</view>
												<view class="rang_vote_count">{{ rank_data[2]['votes'] }}</view>
												<!-- <view class="rang_no">编号：{{rank_data[2]['sort']}}</view> -->
											</view>
										</view>
										<view class="user_rang t_c h4" v-if="rank_data.length > 2">
											<view class="rang_row fl w_100">
												<view class="w_25">排名</view>
												<!-- <view class="w_20" style="height: 100rpx;">编号</view> -->
												<view class="w_55">姓名</view>
												<view class="w_20">人气数</view>
											</view>
											<view class="rang_row fl w_100" v-if="index > 2" v-for="(item, index) in rank_data"
												:key="index">
												<view class="w_25">
													<image class="rang_three"
														:src="require(`../../resource/images/order_ico/icon-${index+1}@2x.png`)"
														v-if="index + 1 > 3 && index + 1 <= 10"></image>
													<text class="rang_num rad_3"
														v-else-if="index + 1 > 10">{{ index + 1 }}</text>
												</view>
			
												<!-- <view class="w_20">{{item.sort}}</view> -->
			
												<view class="w_55 w_space">{{ item.name }}</view>
			
												<view class="w_20">{{ item.votes }}</view>
											</view>
										</view>
										<view v-if="rank_data.length > 9">
											<view class="load_tip" v-if="!(rank_load === false ? false : true)">- 暂无更多数据 -
											</view>
											<view class="load_tip" v-if="!(rank_load === true ? false : true)">- 上拉加载 -</view>
											<view class="load_icon w_100 t_c" v-if="vote_load === 2">
												<image :lazyLoad="true" mode="aspectFill"
													src="/static/wxz_wzbagent/resource/images/load.gif"></image>
											</view>
										</view>
									</block>
									<block v-else>
										<view :class="['vote_total_nums','vote_total_nums'+themes]"
											v-if="(live.ljrq_status == 1 || columnsurs.special) && info_flag"
											:style="'background-color:' + color_one + ';color:' + color_three + ';'">
											<view class="h4" v-if="columnsurs.special">
												{{ columnsurs.special }}
											</view>
											<view :class="['vote_num_item','vote_num_item'+themes]"
												v-if="live.ljrq_status == 1 && live.ljrq_show_type == 0">
												<view class="vote_num_title h4" :style="'color:' + color_three + ';'">参与选手
												</view>
												<view class="vote_num_value" :style="'color:' + color_three + ';'">
													{{ live.vote_totle_count[0].counts }}
												</view>
											</view>
											<view :class="['vote_num_item','vote_num_item'+themes]"
												v-if="live.ljrq_status == 1 && live.ljrq_show_type == 0">
												<view class="vote_num_title h4" :style="'color:' + color_three + ';'">累计人气值
												</view>
												<view class="vote_num_value" :style="'color:' + color_three + ';'">
													{{ live.vote_totle_nums[0].nums }}
												</view>
											</view>
											<view :class="['vote_num_item','vote_num_item'+themes]"
												v-if="live.ljrq_status == 1 && live.ljrq_show_type == 0">
												<view class="vote_num_title h4" :style="'color:' + color_three + ';'">访问量</view>
												<view class="vote_num_value" :style="'color:' + color_three + ';'">
													{{ live.viewer_count }}
												</view>
											</view>
										</view>
										<view :class="['search','search'+themes]"
											:style="'border: ' + (color_one ? '2rpx solid ' + color_one : '') + ';'"
											v-if="vote.hide_search_box != 1 && info_flag">
											<form @submit="votesearch" :class="'form_btn'+themes">
												<input :class="'form_btn'+themes" @input="searchFun"
													:placeholder="live.id == 8637 ? '请输入节目编号' : '请输入姓名'" value=""
													:placeholder-style="'color:' + color_one + ';'"
													:style="'color:' + color_one + ';background-color: ' + color_three + ';'"
													v-if="color_status == '1'" />
												<input :class="'form_btn'+themes" @input="searchFun"
													:placeholder="live.id == 8637 ? '请输入节目编号' : '请输入姓名'" value=""
													placeholder-class="phcolor"
													:style="'color:' + color_one + ';background-color: ' + color_three + ';'"
													v-else />
												<view @tap="votesearch" class="search_icon"
													:style="'background-color:' + color_three + ';'">
													<text class="iconfont icon-sousuo"
														:style="'color:' + (color_one ? color_one : '#fff;')"></text>
												</view>
											</form>
										</view>
										<view v-else-if="vote.hide_search_box == 1" style="margin-top: 8px"></view>
										<view :class="'vote_tab ' + themes" v-if="is_vote_tab != 0 && info_flag">
											<view @tap="bindvotetab"
												:class="'vote_tab_item ' + (columnsurs_selected == 'card1' ? 'selected' : '')"
												data-type="card1" :style="
			                                    'color:' +
			                                    (columnsurs_selected == 'card1' ? color_three : color_one) +
			                                    ';background-color:' +
			                                    (columnsurs_selected == 'card1' ? color_one : color_three) +
			                                    ';border:' +
			                                    (columnsurs_selected == 'card1' ? 0 : '2rpx solid ' + color_one)
			                                ">
												<view class="vote_tab_type">
													<text>{{ columnsurs.card1 }}</text>
												</view>
											</view>
											<view @tap="bindvotetab"
												v-if="(vote.vote_downtime_status != 1 && vote.hide_data_before == 1) || vote.hide_data_before == 0"
												:class="'vote_tab_item ' + (columnsurs_selected == 'card2' ? 'selected' : '') + ' card2'"
												data-type="card2" :style="
			                                    'color:' +
			                                    (columnsurs_selected == 'card2' ? color_three : color_one) +
			                                    ';background-color:' +
			                                    (columnsurs_selected == 'card2' ? color_one : color_three) +
			                                    ';border:' +
			                                    (columnsurs_selected == 'card2' ? 0 : '2rpx solid ' + color_one)
			                                ">
												<view class="vote_tab_type">
													<text>{{ columnsurs.card2 }}</text>
												</view>
											</view>
											<view @tap="bindvotetab"
												:class="'vote_tab_item ' + (columnsurs_selected == 'card3' ? 'selected' : '')"
												data-type="card3" :style="
			                                    'margin-left: ' +
			                                    ((vote.vote_downtime_status != 1 && vote.hide_data_before == 1) || vote.hide_data_before == 0 ? '0px' : '8px') +
			                                    ';color:' +
			                                    (columnsurs_selected == 'card3' ? color_three : color_one) +
			                                    ';background-color:' +
			                                    (columnsurs_selected == 'card3' ? color_one : color_three) +
			                                    ';border:' +
			                                    (columnsurs_selected == 'card3' ? 0 : '2rpx solid ' + color_one)
			                                ">
												<view class="vote_tab_type">
													<text>{{ columnsurs.card3 }}</text>
												</view>
											</view>
										</view>
			
										<view :class="['vote_nums','vote_nums'+themes]" v-if="info_flag && (live.tou_djs_status == 1 || themes!='themes_9')"
											:style="'display:block;color:' + color_three + ';background-color:' + color_one + ';' + (live.id == 6387 ? 'padding:50rpx 0' : '')">
			
											<view :class="['vote_num_title','vote_num_title'+themes]" style="width: 100%"
												v-if="live.tou_djs_status == 1">
												<view class="vote_num_item"
													v-if="vote.vote_downtime_status && !live.tou_djs_text"
													:style="'color:' + color_three + ';'">
			
													{{ vote.vote_downtime_status == 1 ? '距离投票开始' : vote.vote_downtime_status == 2 ? '距离投票结束' : '投票已结束' }}
												</view>
												<view class="vote_num_title" v-if="live.tou_djs_text"
													:style="'color:' + color_three + ';'">{{ live.tou_djs_text }}</view>
												<view class="vote_num_value time" style="font-size: 27rpx">
													{{ vote.vote_downtime_status != 3 ? vote_downtime.day : '00' }}
													<text style="margin: 0 22rpx">天</text>
													{{ vote.vote_downtime_status != 3 ? vote_downtime.hour : '00' }}
													<text style="margin: 0 22rpx">时</text>
													{{ vote.vote_downtime_status != 3 ? vote_downtime.minute : '00' }}
													<text style="margin: 0 22rpx">分</text>
													{{ vote.vote_downtime_status != 3 ? vote_downtime.second : '00' }}
													<text style="margin: 0 22rpx">秒</text>
												</view>
											</view>
											<view style="display: flex"
												v-if="live.ljrq_status == 1 && live.ljrq_show_type == 1">
												<view :class="['vote_num_item','vote_num_item'+themes]">
													<view class="vote_num_title h4"
														:style="'display: inline-block;color:' + color_three + ';'">参与选手　</view>
													<view class="vote_num_value"
														:style="'display: inline-block;color:' + color_three + ';'">
														{{ live.vote_totle_count[0].counts }}
													</view>
												</view>
												<view :class="['vote_num_item','vote_num_item'+themes]">
													<view class="vote_num_title h4"
														:style="'display: inline-block;color:' + color_three + ';'">累计人气值　
													</view>
													<view class="vote_num_value"
														:style="'display: inline-block;color:' + color_three + ';'">
														{{ live.vote_totle_nums[0].nums }}
													</view>
												</view>
												<view :class="['vote_num_item','vote_num_item'+themes]">
													<view class="vote_num_title h4"
														:style="'display: inline-block;color:' + color_three + ';'">访问量　</view>
													<view class="vote_num_value"
														:style="'display: inline-block;color:' + color_three + ';'">
														{{ live.viewer_count }}
													</view>
												</view>
											</view>
										</view>
			
										<view v-if="columnsurs_selected == 'card1'">
											<view class="user_all" v-if="info_flag">
												<view :class="['h4','user_item',((vote.vote_downtime_status != 1 && vote.hide_data_before == 1) || vote.hide_data_before == 0) || themes!='themes_9'?'user_item'+themes:'user_item2'+themes]" v-if="item.id"
													:style="'border: ' + (color_one ? '2rpx solid ' + color_one : '') + ';border-radius: 8rpx;'"
													v-for="(item, index) in vote_data" :key="index">
													<view hoverClass="none" @tap="vote_info(item.id,live.token,item,index)">
														<view class="user_no t_c t_white h5" v-if="is_vote_num != 0">
															<image src="/static/wxz_wzbagent/resource/images/icon_5.png">
															</image>
															<view>{{ item.sort }}号</view>
														</view>
														<view class="team_name" v-if="item.team_name"
															:style="'color:' + color_three + ';background-color:' + color_one + ';'">
															{{ item.team_name }}
														</view>
														<view class="team_name"
															v-if="item.mechanism_name && (item.live_id == '2058' || item.live_id == '2045' || item.live_id == '2044' || item.live_id == '2043')"
															:style="'color:' + color_three + ';background-color:' + color_one + ';'">
															{{ item.mechanism_name }}
														</view>
														<view class="vote_photo">
															<view :class="['rank_num','rank_num'+themes]"
																v-if="(vote.vote_downtime_status != 1 && vote.hide_data_before == 1) || vote.hide_data_before == 0">
																<image class="rank_num_bg"
																	src="/static/wxz_wzbagent/resource/images/icon36.png">
																</image>
																<view class="rank_txt">
																	<span class='rank_pm'>排名:</span>
																	<text class="rank_spot"
																		style="font-weight: bold">{{ index + 1 }}</text>
																</view>
															</view>
															<image class="user_img" :lazyLoad="true" mode="aspectFill"
																:src="item.pic"></image>
														</view>
														<view class="user_nick" :style="'color:' + color_one + ';'">
															<view class="w_space fl" style="font-weight: bold">{{ item.name }}
															</view>
															<view class="w_space fr t_r"
																v-if="(vote.vote_downtime_status != 1 && vote.hide_data_before == 1) || vote.hide_data_before == 0">
																{{ item.votes }}{{ columnsurs.zan }}
															</view>
														</view>
													</view>
													<view
														v-if="(vote.vote_downtime_status==1 || vote.vote_downtime_status==3 || vote.vote_downtime_status==4) && vote.hide_data_before == 0"
														class="user_btn" :data-xuan_id="item.id" :data-xuan_name="item.name"
														:data-index="index" style="text-decoration:none"
														:style="'color:' + color_three + ';background-color:' + color_one + ';'"
														@tap="tsk">
														{{ columnsurs.award ? columnsurs.award : '打call' }}
													</view>
													<view v-else>
														<view @tap="bindopenvote"
															v-if="(vote.vote_downtime_status != 1 && vote.hide_data_before == 1) || vote.hide_data_before == 0"
															class="user_btn" :data-xuan_id="item.id" :data-xuan_name="item.name"
															:data-url="item.h5_url" :data-index="index"
															:style="'color:' + color_three + ';background-color:' + color_one + ';'">
															{{ columnsurs.award ? columnsurs.award : '打call' }}
															<!-- <image class="btn_icon_src" src="{{'../../resource/images/icon2.png'}}"></image> -->
														</view>
													</view>
			
			
												</view>
											</view>
											<view v-else>
												<vote_info :xuan_id="info_xuan_id" :token="info_token" :info_xuan="info_xuan" :live='live'>
												</vote_info>
											</view>
											<view v-if="vote_data.length > 9">
												<view class="load_tip" v-if="!(vote_load === false ? false : true)">- 暂无更多数据 -
												</view>
												<view class="load_tip" v-if="!(vote_load === true ? false : true)">- 上拉加载 -
												</view>
												<view class="load_icon w_100 t_c" v-if="vote_load == 2">
													<image :lazyLoad="true" mode="aspectFill" src="/static/wxz_wzbagent/resource/images/load.gif"></image>
												</view>
											</view>
			
										</view>
										<!-- 排行榜 -->
										<view v-if="columnsurs_selected == 'card2'">
											<view class="rang_wrap" v-if="rank_data.length > 0">
												<view class="rang_item rang_item1">
													<image class="rang_icon"
														src="/static/wxz_wzbagent/resource/images/order_ico/rank2.png"></image>
													<view class="rank_head">
														<image class="rang_uhead" mode="widthFix" :src="rank_data[1]['pic']">
														</image>
													</view>
													<view class="rang_name">{{ rank_data[1]['name'] }}</view>
													<view class="rang_vote_count">{{ rank_data[1]['votes'] }}</view>
													<view class="rang_no">编号：{{ rank_data[1]['sort'] }}</view>
												</view>
												<view class="rang_item rang_item2"
													:style="'background-color:' + themeColor.vrl.bg + ';'">
													<view class="left_wing"
														:style="'border-color:' + themeColor.vrl.top_three.wing + ' transparent transparent;'">
													</view>
													<view class="right_wing"
														:style="'border-color:' + themeColor.vrl.top_three.wing + ' transparent transparent;'">
													</view>
													<image class="rang_icon"
														src="/static/wxz_wzbagent/resource/images/order_ico/rank1.png"></image>
													<view class="rank_head">
														<image class="rang_uhead" mode="widthFix" :src="rank_data[0]['pic']">
														</image>
													</view>
													<view class="rang_name">{{ rank_data[0]['name'] }}</view>
													<view class="rang_vote_count">{{ rank_data[0]['votes'] }}</view>
													<view class="rang_no">编号：{{ rank_data[0]['sort'] }}</view>
												</view>
												<view class="rang_item rang_item3"
													:style="'background-color:' + themeColor.vrl.bg + ';'">
													<image class="rang_icon"
														src="/static/wxz_wzbagent/resource/images/order_ico/rank3.png"></image>
													<view class="rank_head">
														<image class="rang_uhead" mode="widthFix" :src="rank_data[2]['pic']">
														</image>
													</view>
													<view class="rang_name">{{ rank_data[2]['name'] }}</view>
													<view class="rang_vote_count">{{ rank_data[2]['votes'] }}</view>
													<view class="rang_no">编号：{{ rank_data[2]['sort'] }}</view>
												</view>
											</view>
											<view class="user_rang t_c h4" v-if="rank_data.length > 2">
												<view class="rang_row fl w_100">
													<view class="w_15">排名</view>
													<view class="w_20" style="height: 100rpx">编号</view>
													<view class="w_45">姓名</view>
													<view class="w_20">人气数</view>
												</view>
												<view class="rang_row fl w_100" v-if="index > 2"
													v-for="(item, index) in rank_data" :key="index">
													<view class="w_15">
														<image class="rang_three"
															:src="require(`../../resource/images/order_ico/icon-${index+1}@2x.png`)"
															v-if="index + 1 > 3 && index + 1 <= 10"></image>
														<text class="rang_num rad_3"
															v-else-if="index + 1 > 10">{{ index + 1 }}</text>
													</view>
			
													<view class="w_20">{{ item.sort }}</view>
			
													<view class="w_45 w_space">{{ item.name }}</view>
			
													<view class="w_20">{{ item.votes }}</view>
												</view>
											</view>
											<view v-if="rank_data.length > 9">
												<view class="load_tip" v-if="!(rank_load === false ? false : true)">- 暂无更多数据 -
												</view>
												<view class="load_tip" v-if="!(rank_load === true ? false : true)">- 上拉加载 -
												</view>
												<view class="load_icon w_100 t_c" v-if="vote_load === 2">
													<image :lazyLoad="true" mode="aspectFill"
														src="/static/wxz_wzbagent/resource/images/load.gif"></image>
												</view>
											</view>
										</view>
										<!-- 规则描述 -->
										<view v-if="columnsurs_selected == 'card3'">
											<view class="page-dec">
												<!-- <template is="wxParse" :data="wxParseData:intro_content.nodes"></template> -->
												<mp-html :content="article_intro_content"></mp-html>
											</view>
										</view>

									</block>
								</block>
							</view>
						</block>
						<!-- 团体榜单 -->
						<block v-if="tabtype == 'qu_rank'">
							<view :class="'page-vote ' + themes">
								<!-- parse <template is="qu_rank" :data="qu_rank_data,qu_rank_page,qu_rank_load,color_status,color_one,color_two,color_three"></template> -->
								<block name="qu_rank">
									<view>
										<view class="rang_wrap" v-if="qu_rank_data.length > 0">
											<view class="rang_item rang_item1">
												<image class="rang_icon" src="/static/wxz_wzbagent/resource/images/order_ico/rank2.png"></image>
												<view class="rank_head">
													<image class="rang_uhead" mode="widthFix" :src="qu_rank_data[1]['team_img']"></image>
												</view>
												<view class="rang_name">{{ qu_rank_data[1]['team_name'] }}</view>
												<view class="rang_vote_count">{{ qu_rank_data[1]['count'] }}</view>
											</view>
											<view class="rang_item rang_item2" :style="'background-color:' + themeColor.vrl.bg + ';'">
												<view class="left_wing" :style="'border-color:' + themeColor.vrl.top_three.wing + ' transparent transparent;'">
												</view>
												<view class="right_wing" :style="'border-color:' + themeColor.vrl.top_three.wing + ' transparent transparent;'">
												</view>
												<image class="rang_icon" src="/static/wxz_wzbagent/resource/images/order_ico/rank1.png"></image>
												<view class="rank_head">
													<image class="rang_uhead" mode="widthFix" :src="qu_rank_data[0]['team_img']"></image>
												</view>
												<view class="rang_name">{{ qu_rank_data[0]['team_name'] }}</view>
												<view class="rang_vote_count">{{ qu_rank_data[0]['count'] }}</view>
											</view>
											<view class="rang_item rang_item3" :style="'background-color:' + themeColor.vrl.bg + ';'">
												<image class="rang_icon" src="/static/wxz_wzbagent/resource/images/order_ico/rank3.png"></image>
												<view class="rank_head">
													<image class="rang_uhead" mode="widthFix" :src="qu_rank_data[2]['team_img']"></image>
												</view>
												<view class="rang_name">{{ qu_rank_data[2]['team_name'] }}</view>
												<view class="rang_vote_count">{{ qu_rank_data[2]['count'] }}</view>
											</view>
										</view>
										<view class="user_rang t_c h4" v-if="qu_rank_data.length > 2">
											<view class="rang_row fl w_100">
												<view class="w_15">排名</view>
												<view class="w_55">赛区名</view>
												<view class="w_25">人气数</view>
											</view>
											<view class="rang_row fl w_100" v-if="index > 2"
												v-for="(item, index) in qu_rank_data" :key="index">
												<view class="w_15">
													<image class="rang_three"
														:src="require(`../../resource/images/order_ico/icon-${index+1}@2x.png`)"
														v-if="index + 1 > 3 && index + 1 <= 10"></image>
													<text class="rang_num rad_3"
														v-else-if="index + 1 > 10">{{ index + 1 }}</text>
												</view>
			
												<view class="w_55 w_space">{{ item.team_name }}</view>
			
												<view class="w_25">{{ item.count }}</view>
											</view>
										</view>
									</view>
								</block>
							</view>
						</block>
						<!-- 线下得分 -->
						<block v-if="tabtype == 'xx_fen'">
							<view :class="'page-enroll ' + themes">
								<!-- parse <template is="xx_fen" :data="live,isShowXxGroups,XxGroups,XxName,XxGroupRes,XxStatus,XxData,wxParseData,tab_id,WxParseListArr,is_xxfen_des,color_status,color_one,color_two,color_three"></template> -->
								<!-- min-height:' + XxGroupRes.length * 105 + 'rpx; -->
								<block name="xx_fen">
									<view class="apply_container" v-if="XxStatus == 0"
										:style="'background:' + color_two + ';'">
										<view class="apply_row b_all" v-for="(item,index) in offlineParameters" :key="index">
											<view v-if="item.input_type == 1">
												<text class="apply_check" v-if="item.is_required == 1">*</text>
												<view class="apply_name fl" :style="'color:' + color_one + ';'">
													{{item.show_name}}
												</view>
												<view class="apply_value fl" style="height: 74rpx;">
													<input :data-required="true" v-model="item.value"
														:placeholder="'请输入'+ item.show_name" v-if="color_status == '1'"
														:placeholder-style="'color:' + color_one + ';'" type="text" value="" />
													<input v-model="item.value" :data-required="true"
														:placeholder="'请输入'+ item.show_name" v-else placeholder-class="phcolor"
														type="text" value="" />
												</view>
											</view>
											<view v-if="item.input_type == 2">
												<text class="apply_check" v-if="item.is_required == 1">*</text>
												<view class="apply_name fl" :style="'color:' + color_one + ';'">
													{{item.show_name}}
												</view>
												<view class="select-current" @tap.stop.prevent="openCloseXxGroups">
													<picker
														@change="(val) =>{olGroupChange('XxGroupRes','offlineParameters',val,index,item)}"
														:value="onlineLicenseNameGroupIndex" :range="XxGroupRes"
														:data-range="XxGroupRes">
														<view class="picker" :style="'color:' + color_one + ';'">
															<text class="current-name"
																:style="'color:' + color_one + ';'">{{ item.value || '请选择' + item.show_name }}</text>
														</view>
													</picker>
												</view>
											</view>
										</view>
										<!-- <view class="apply_row b_all">
											<text class="apply_check">*</text>
											<view class="apply_name fl" :style="'color:' + color_one + ';'">姓名</view>
											<view class="apply_value fl">
												<input @blur="bindXxNameInput" name="name" data-name="name"
													:data-required="true" placeholder="请输入姓名" v-if="color_status == '1'"
													:placeholder-style="'color:' + color_one + ';'" type="text"
													:value="onlineLicenseName" />
												<input @blur="bindXxNameInput" name="name" data-name="name"
													:data-required="true" placeholder="请输入姓名" v-else placeholder-class="phcolor"
													type="text" :value="onlineLicenseName" />
											</view>
										</view>
										<view class="apply_row b_all"
											v-if="live.id == 4106 || live.id == 4102 || live.id == 4103 || live.id == 4104 || live.id == 4107">
											<text class="apply_check">*</text>
											<view class="apply_name fl" :style="'color:' + color_one + ';'">手机号</view>
											<view class="apply_value fl">
												<input @blur="bindXxMobileInput" name="mobile" data-name="mobile"
													:data-required="true" placeholder="请输入手机号" v-if="color_status == '1'"
													:placeholder-style="'color:' + color_one + ';'" type="number" value="" />
												<input @blur="bindXxMobileInput" name="mobile" data-name="mobile"
													:data-required="true" placeholder="请输入手机号" v-else
													placeholder-class="phcolor" type="number" value="" />
											</view>
										</view>
										<view class="apply_row b_all"
											v-if="live.id == 4439 || live.id == 4628 || live.id == 6227 || live.id == 5643">
											<text class="apply_check">*</text>
											<view class="apply_name fl" :style="'color:' + color_one + ';'">参赛证号</view>
											<view class="apply_value fl">
												<input @blur="bindXxMobileInput" name="mobile" data-name="mobile"
													:data-required="true" placeholder="请输入参赛编号" v-if="color_status == '1'"
													:placeholder-style="'color:' + color_one + ';'" type="text" value="" />
												<input @blur="bindXxMobileInput" name="mobile" data-name="mobile"
													:data-required="true" placeholder="请输入参赛编号" v-else
													placeholder-class="phcolor" type="text" value="" />
											</view>
										</view>
										<view class="apply_row b_all"
											v-if="live.id == 6905 || live.id == 5769 || live.id == 7002">
											<text class="apply_check">*</text>
											<view class="apply_name fl" :style="'color:' + color_one + ';'">身份证号</view>
											<view class="apply_value fl">
												<input @blur="bindXxGroupsInput" name="mobile" data-name="mobile"
													:data-required="true" placeholder="请输入身份证号" v-if="color_status == '1'"
													:placeholder-style="'color:' + color_one + ';'" type="text"
													:value="XxGroups" />
												<input @blur="bindXxGroupsInput" name="mobile" data-name="mobile"
													:data-required="true" placeholder="请输入身份证号" v-else
													placeholder-class="phcolor" type="text" :value="XxGroups" />
											</view>
										</view>
										<view class="apply_row b_all"
											v-if="live.id != 7747 && live.id != 7748 && live.id != 6227 && live.id != 7259 && live.id != 7260&& live.id != 9699&& live.id != 9477">
											<text class="apply_check">*</text>
											<view class="apply_name fl" :style="'color:' + color_one + ';'">
												{{ live.id == 5110 ? '参赛项目' : '组别' }}
											</view>
											<view class="select-current" @tap.stop.prevent="openCloseXxGroups">
												<text class="current-name"
													:style="'color:' + color_one + ';'">{{ XxGroups ? XxGroups : '请选择' }}</text>
											</view>
											<view class="option-list" v-if="isShowXxGroups">
												<text class="option" @tap.stop.prevent="optionTapXxGroups" :data-id="idx"
													:data-name="select" :style="'color:' + color_one + ';'"
													v-for="(select, index) in XxGroupRes" :key="select.idx">
													{{ select }}
												</text>
											</view>
										</view> -->
										<view class="apply_btn_wrap">
											<view @tap="XxSubmit" class="apply_submit_btn"
												:style="'background-color:' + color_one + ';'">立即查询</view>
										</view>
			
										<view :class="'page-dec ' + themes" v-if="is_xxfen_des"
											:style="'color:' + color_one + ';'">
											<!-- <template is="wxParse" :data="wxParseData:WxParseListArr[tab_id]"></template> -->
											<mp-html :content="WxParseListArr[tab_id]"></mp-html>
										</view>
									</view>
									<view class="info_div" v-if="XxStatus == 1">
										<view class="info" v-if="XxData[0].name">
											<view class="heng_div">
												<view class="left top">
													<view class="topheng"></view>
													查询结果
												</view>
												<view class="right top"></view>
											</view>
											<view class="heng_div" v-if="XxData[0].name">
												<view class="left">姓名:</view>
												<view class="right" style="">{{ XxData[0].name }}</view>
											</view>
											<block v-for="(item, index) in XxData" :key="index">
												<view class="heng_div" v-if="item.groups">
													<view class="left">{{ live.id == 5769 || live.id == 7002 ? '身份证号' : '组别' }}:
													</view>
													<view class="right" style="">{{ item.groups }}</view>
												</view>
			
												<view class="heng_div" v-if="item.number">
													<view class="left">参赛编号:</view>
													<view class="right" style="">{{ item.number }}</view>
												</view>
			
												<view class="heng_div" v-if="item.rank">
													<view class="left">排名:</view>
													<view class="right" style="">{{ item.rank }}</view>
												</view>
			
												<view class="heng_div" v-if="item.fen">
													<view class="left">分数:</view>
													<view class="right" style="">{{ item.fen }}</view>
												</view>
			
												<view class="heng_div" v-if="item.win">
													<view class="left">奖项:</view>
													<view class="right" style="">{{ item.win }}</view>
												</view>
			
												<view class="heng_div" v-if="item.time">
													<view class="left">{{ live.id == 5769 || live.id == 7002 ? '组别' : '参赛时间' }}:
													</view>
													<view class="right" style="">{{ item.time }}</view>
												</view>
			
												<view class="heng_div"
													v-if="item.beizhu && (live.id == 4106 || live.id == 4102 || live.id == 4103 || live.id == 4104 || live.id == 4107)">
													<view class="left">手机号:</view>
													<view class="right" style="">{{ item.beizhu }}</view>
												</view>
			
												<view class="bottom_div"
													v-if="item.beizhu && (live.id != 4106 || live.id != 4102 || live.id != 4103 || live.id != 4104 || live.id != 4107)">
													<view class="heng_div" style="border-bottom: 0">
														<view class="left">备注:</view>
													</view>
													<view class="beizhu" style="">{{ item.beizhu }}</view>
													<view style="width: 100%; height: 20rpx"></view>
												</view>
											</block>
										</view>
										<view class="info" v-else>
											<view class="heng_div">
												<view class="left top">
													<view class="topheng"></view>
													查询结果
												</view>
												<view class="right top"></view>
											</view>
											<view class="heng_div" v-if="XxData.name">
												<view class="left">姓名:</view>
												<view class="right" style="">{{ XxData.name }}</view>
											</view>
											<view class="heng_div" v-if="XxData.groups">
												<view class="left">组别:</view>
												<view class="right" style="">{{ XxData.groups }}</view>
											</view>
											<view class="heng_div" v-if="XxData.number">
												<view class="left">参赛编号:</view>
												<view class="right" style="">{{ XxData.number }}</view>
											</view>
											<view class="heng_div" v-if="XxData.rank">
												<view class="left">排名:</view>
												<view class="right" style="">{{ XxData.rank }}</view>
											</view>
											<view class="heng_div" v-if="XxData.fen">
												<view class="left">分数:</view>
												<view class="right" style="">{{ XxData.fen }}</view>
											</view>
											<view class="heng_div" v-if="XxData.win">
												<view class="left">奖项:</view>
												<view class="right" style="">{{ XxData.win }}</view>
											</view>
											<view class="heng_div" v-if="XxData.time">
												<view class="left">参赛时间:</view>
												<view class="right" style="">{{ XxData.time }}</view>
											</view>
											<view class="heng_div" v-if="XxData.beizhu && (live.id == 6227 || live.id == 5643)">
												<view class="left">参赛证号:</view>
												<view class="right" style="">{{ XxData.beizhu }}</view>
											</view>
											<view class="heng_div"
												v-if="XxData.beizhu && (live.id == 4106 || live.id == 4102 || live.id == 4103 || live.id == 4104 || live.id == 4107)">
												<view class="left">手机号:</view>
												<view class="right" style="">{{ XxData.beizhu }}</view>
											</view>
											<view class="bottom_div" v-if="XxData.beizhu && live.id != 6227 && live.id != 5643">
												<view class="heng_div" style="border-bottom: 0">
													<view class="left">备注:</view>
												</view>
												<view class="beizhu" style="">{{ XxData.beizhu }}</view>
												<view style="width: 100%; height: 20rpx"></view>
											</view>
											<view class="bottom_div" style="text-align: center" v-if="live.id == 4106">
												<image mode="widthFix" style="width: 25%" @tap="photoLivePreview"
													data-url="https://tovqb.top/ueditor/temp/2021/12/live_4106_code.jpg"
													:show-menu-by-longpress="true"
													src="https://tovqb.top/ueditor/temp/2021/12/live_4106_code.jpg"></image>
											</view>
										</view>
									</view>
								</block>
								<!-- <import src="../../resource/wxParse/wxParse.wxml"></import>
			        <view class="page-dec {{themes}}">
			            <template is="wxParse" data="{{wxParseData:WxParseListArr[tab_id]}}"></template>
			        </view> -->
							</view>
						</block>
						<!-- 电子参赛证 -->
						<block v-if="tabtype == 'online_license'">
							<view :class="'page-enroll ' + themes" style="min-height: 700rpx">
								<!-- parse <template is="online_license" :data="onlineLicenseGroups,onlineLicenseGroupIndex,onlineLicenseName,onlineLicenseGroupTemp,olStatus,olData,color_status,color_one,color_two,color_three,themes,tab_name,live"></template> -->
								<block name="online_license">
									<view class="apply_container"
										:style="'min-height:auto;background:' + color_two + ';padding-bottom:0;'"
										v-if="!olData.entry_other_data.url">
										<view class="apply_row b_all" v-for="(item,index) in parameters" :key="index">
											<view v-if="item.input_type == 1">
												<text class="apply_check" v-if="item.is_required == 1">*</text>
												<view class="apply_name fl" :style="'color:' + color_one + ';'">
													{{item.show_name}}
												</view>
												<view class="apply_value fl" style="height: 74rpx;">
													<input :data-required="true" v-model="item.value"
														:placeholder="'请输入'+ item.show_name" v-if="color_status == '1'"
														:placeholder-style="'color:' + color_one + ';'" type="text" value="" />
													<input v-model="item.value" :data-required="true"
														:placeholder="'请输入'+ item.show_name" v-else placeholder-class="phcolor"
														type="text" value="" />
												</view>
											</view>
											<view v-if="item.input_type == 2">
												<text class="apply_check" v-if="item.is_required == 1">*</text>
												<view class="apply_name fl" :style="'color:' + color_one + ';'">
													{{item.show_name}}
												</view>
												<view class="select-current" @tap.stop.prevent="openCloseXxGroups">
													<picker
														@change="(val) =>{olGroupChange('onlineLicenseGroups','parameters',val,index,item)}"
														:value="onlineLicenseNameGroupIndex" :range="onlineLicenseGroups"
														:data-range="onlineLicenseGroups">
														<view class="picker" :style="'color:' + color_one + ';'">
															<text class="current-name"
																:style="'color:' + color_one + ';'">{{ item.value || '请选择' + item.show_name }}</text>
														</view>
													</picker>
												</view>
											</view>
										</view>
										<!-- <view class="apply_row b_all">
											<text class="apply_check">*</text>
											<view class="apply_name fl" :style="'color:' + color_one + ';'">姓名</view>
											<view class="apply_value fl">
												<input @input="olNameChange" @blur="olNameChange" name="name" data-name="name"
													:data-required="true" placeholder="请输入姓名" v-if="color_status == '1'"
													:placeholder-style="'color:' + color_one + ';'" type="text" value="" />
												<input @input="olNameChange" @blur="olNameChange" name="name" data-name="name"
													:data-required="true" placeholder="请输入姓名" v-else placeholder-class="phcolor"
													type="text" value="" />
											</view>
										</view>
										<view class="apply_row b_all" v-if="
			                                live.wxapp_id != 400 &&
											live.wxapp_id != 401
			                            ">
											<text class="apply_check">*</text>
											<view class="apply_name fl" :style="'color:' + color_one + ';'">
												{{ live.id == '6702' ? '证件类型' : '组别' }}
											</view>
											<view class="select-current" @tap.stop.prevent="openCloseXxGroups">
												<picker @change="olGroupChange" :value="onlineLicenseNameGroupIndex"
													:range="onlineLicenseGroups" :data-range="onlineLicenseGroups">
													<view class="picker" :style="'color:' + color_one + ';'">
														<text class="current-name"
															:style="'color:' + color_one + ';'">{{ onlineLicenseGroupTemp ? onlineLicenseGroupTemp : '请选择' }}</text>
													</view>
												</picker>
											</view>
										</view>
										<view class="apply_row b_all" v-if="
			                                live.id == 5821 ||
			                                live.id == 5623 ||
			                                live.id == 8004 ||
			                                live.id == 8005 ||
			                                live.id == 8071 ||
			                                live.id == 8147 ||
			                                live.id == 8150 ||
			                                live.id == 8151 ||
			                                live.id == 8152 ||
			                                live.id == 8154 ||
			                                live.id == 8155
			                            ">
											<text class="apply_check">*</text>
											<view class="apply_name fl" :style="'color:' + color_one + ';'">手机号</view>
											<view class="apply_value fl">
												<input @blur="olAgeChange" @input="olAgeChange" name="name" data-name="age"
													:data-required="true" placeholder="请输入手机号" v-if="color_status == '1'"
													:placeholder-style="'color:' + color_one + ';'" type="text" value="" />
												<input @blur="olAgeChange" @input="olAgeChange" name="name" data-name="age"
													:data-required="true" placeholder="请输入手机号" v-else
													placeholder-class="phcolor" type="text" value="" />
											</view>
										</view>
										<view class="apply_row b_all" v-if="
			                                live.id == 5769 ||
			                                live.id == 7610 ||
			                                live.id == 7611 ||
			                                live.id == 7612 ||
			                                live.id == 7782 ||
			                                live.id == 7783 ||
			                                live.id == 7784 ||
			                                live.id == 8091
			                            ">
											<text class="apply_check">*</text>
											<view class="apply_name fl" :style="'color:' + color_one + ';'">身份证号</view>
											<view class="apply_value fl">
												<input @blur="olAgeChange" @input="olAgeChange" name="name" data-name="age"
													:data-required="true" placeholder="请输入身份证号" v-if="color_status == '1'"
													:placeholder-style="'color:' + color_one + ';'" type="text" value="" />
												<input @blur="olAgeChange" @input="olAgeChange" name="name" data-name="age"
													:data-required="true" placeholder="请输入身份证号" v-else
													placeholder-class="phcolor" type="text" value="" />
											</view>
										</view>
										<view class="apply_row b_all" v-if="
			                                live.id == 7688 ||
			                                live.id == 7689 ||
			                                live.id == 7690 ||
			                                live.id == 7776 ||
			                                live.id == 7777 ||
			                                live.id == 7778 ||
			                                live.id == 7901 ||
			                                live.id == 7902 ||
			                                live.id == 7792 ||
			                                live.id == 8043 ||
			                                live.id == 6256 ||
			                                live.id == 8210 ||
			                                live.id == 8209 ||
			                                live.wxapp_id == 400
			                            ">
											<text class="apply_check">*</text>
											<view class="apply_name fl" :style="'color:' + color_one + ';'">参赛编号</view>
											<view class="apply_value fl">
												<input @blur="olAgeChange" @input="olAgeChange" name="name" data-name="age"
													:data-required="true" placeholder="请输入参赛编号" v-if="color_status == '1'"
													:placeholder-style="'color:' + color_one + ';'" type="text" value="" />
												<input @blur="olAgeChange" @input="olAgeChange" name="name" data-name="age"
													:data-required="true" placeholder="请输入参赛编号" v-else
													placeholder-class="phcolor" type="text" value="" />
											</view>
										</view>
										<view class="apply_btn_wrap" style="text-align: center" v-if="live.id == 5936">
											查询时间：7月1日-7月3日</view> -->
										<view class="apply_btn_wrap">
											<view @tap="onlineLicenseSubmit" class="apply_submit_btn"
												:style="'color:' + color_three + ';background-color:' + color_one + ';'">立即查询
											</view>
										</view>
			
										<view :class="'page-dec ' + themes" v-if="is_xxfen_des"
											:style="'color:' + color_one + ';'">
											<!-- <template is="wxParse" :data="wxParseData:WxParseListArr[tab_id]"></template> -->
											<mp-html :content="WxParseListArr[tab_id]"></mp-html>
										</view>
									</view>
			
									<view :class="'online-license-view ' + themes" v-if="olStatus == 1">
										<view v-if="olData.entry_other_data.url">
											<image :src="olData.entry_other_data.url" @tap="photoLivePreview"
												:show-menu-by-longpress="true" :data-url="olData.entry_other_data.url"
												style="width: 100%" mode="widthFix"></image>
										</view>
										<view class="table" style="color1: #000" v-else>
											<view class="tr">
												<view class="td td-title" style="font-weight: 900; font-size: 15px">
													{{ tab_name ? tab_name : '查询结果' }}
												</view>
											</view>
											<view class="tr" v-if="olData.name">
												<view class="td td-30">姓名</view>
												<view class="td td-70">{{ olData.name }}</view>
											</view>
											<view class="tr" v-if="olData.groups">
												<view class="td td-30">{{ live.id == '6702' ? '证件类型' : '组别' }}</view>
												<view class="td td-70">{{ olData.groups }}</view>
											</view>
											<view class="tr" v-if="olData.entry_num">
												<view class="td td-30">
													{{
			                                        olData.live_id == 7610 ||
			                                        olData.live_id == 7611 ||
			                                        olData.live_id == 7612 ||
			                                        olData.live_id == 7782 ||
			                                        olData.live_id == 7783 ||
			                                        olData.live_id == 7784
			                                            ? '点到号'
			                                            : '参赛号码'
			                                    }}
												</view>
												<view class="td td-70">{{ olData.entry_num }}</view>
											</view>
											<view class="tr" v-if="olData.entry_date">
												<view class="td td-30">
													{{
			                                        olData.live_id == 7610 ||
			                                        olData.live_id == 7611 ||
			                                        olData.live_id == 7612 ||
			                                        olData.live_id == 7782 ||
			                                        olData.live_id == 7783 ||
			                                        olData.live_id == 7784
			                                            ? '身份证号'
			                                            : '参赛日期'
			                                    }}
												</view>
												<view class="td td-70">{{ olData.entry_date }}</view>
											</view>
											<view class="tr" v-if="olData.entry_time">
												<view class="td td-30">
													{{ olData.live_id == 7225 || olData.live_id == 7218 ? '展演时间' : '参赛时间' }}
												</view>
												<view class="td td-70">{{ olData.entry_time }}</view>
											</view>
											<view class="tr" v-if="olData.entry_address">
												<view class="td td-30">
													{{ olData.live_id == 7225 || olData.live_id == 7218 ? '展示区' : '参赛场地' }}
												</view>
												<view class="td td-70" v-if="olData.live">
													<navigator
														:url="'/wxz_wzbagent/pages/movie/movie?rid=' + olData.live.rid + '&id=' + olData.live.id"
														style="color: #f00">
														{{ olData.entry_address }} >>>点击前往
													</navigator>
												</view>
												<view class="td td-70" v-else>{{ olData.entry_address }}</view>
											</view>
											<block v-for="(item, index) in olData.entry_other_data.title" :key="index">
												<view class="tr" v-if="item">
													<view class="td td-30">{{ item }}</view>
													<view class="td td-70">{{ olData.entry_other_data.value[index] }}</view>
												</view>
											</block>
										</view>
									</view>
								</block>
							</view>
						</block>
						<!-- 照片直播(废弃) -->
						<block v-if="tabtype == 'photo_live'">
							<!-- <iframe :src="item.navurl" v-if="item.typename=='photo_live'"
								width="100%" height="768px"></iframe> -->
							<web-view v-if="item.typename=='photo_live'" :src="item.navurl"></web-view>
						</block>
						<block v-if="tabtype == 'iframe'" >
							<iframe :src="iframeurl"  width="100%"  style="min-height: 1200rpx"></iframe>
						</block>
						<block v-if="tabtype == 'vz_photo_live'">
							<view :class="'page-enroll ' + themes" style="min-height: 700rpx">
								<!-- parse <template is="photo_live" :data="photoLiveData,color_status,color_one,color_two,color_three,themes"></template> -->
								<block name="photo_live">
									<view class="photo_live_content">
										<view class="photo_live_left">
											<image :src="item.image" lazy-load="1" v-if="index % 2 == 0" mode="widthFix"
												@tap="photoLivePreview" :data-url="item.FilePath"
												v-for="(item, index) in photoLiveData" :key="index"></image>
										</view>
										<view class="photo_live_right">
											<image :src="item.image" lazy-load="1" v-if="index % 2 != 0" mode="widthFix"
												@tap="photoLivePreview" :data-url="item.FilePath"
												v-for="(item, index) in photoLiveData" :key="index"></image>
										</view>
									</view>
								</block>
							</view>
						</block>
						<block v-if="tabtype == 'chat'">
						</block>
						<block v-if="tabtype == 'goods'">
							<view :class="'page-mall ' + themes" style="flex: 1; overflow-y: auto">
								<mall compName="mall"
									:data="{
										live,
										color_status,
										color_one,
										color_two,
										color_three,
										themes,
										goodsList,
										goodsInfo,
										mallShow,
										mallUser,
										showGoodsBox,
										boxGoodsInfo,
										boxGoodsNums
									}"></mall>
							</view>
						</block>
						<!-- 赛区排行 -->
						<block v-if="count_rank.is_rank == '1'">
							<navigator class="count_rank"
								:url="'/wxz_wzbagent/pages/count_rank/index?special_id=' + count_rank.special_id"
								style="display: block; position: fixed; top: 70%; right: 0; z-index: 100">
								<image class="count_rank_img" src="/static/wxz_wzbagent/resource/images/count_rank.jpg"
									style="width: 100rpx; height: 100rpx"></image>
							</navigator>
						</block>
						<!-- 互动 -->
						<!-- <view class="page-chat-box" wx:if="{{tabtype=='chat'}}">
			    <view class="page-dec">
			        <text>官方倡导绿色直播，对直播内容进行24小时在线巡查。任何传播低俗、引诱、暴露等一切黄赌毒内容将会封停账号</text>
			    </view>
			    <view class="page-chat-box-item" wx:for="{{msg}}" wx:key="{{msg}}">
			        <image class="avatar" src="{{item.avatar}}" width="100%"></image>
			        <text class="chat-name">{{item.fromAccountNick}}</text>
			        <view class="chat-box" wx:if="{{item.ispic==0}}" wx:for="{{item.content}}" wx:for-index="indx" wx:for-item="contents" wx:key="{{item.content}}">
			            <text wx:if="{{contents.node=='text'}}">{{contents.text}}</text>
			            <image src="{{contents.attr.src}}" style="width:29px;height:29px;" wx:else></image>
			        </view>
			        <view class="page-chat-big-img" wx:if="{{item.ispic==1}}">
			            <image src="{{item.content}}"></image>
			        </view>
			    </view>
			</view>
			<view class="page-bottom-section" wx:if="{{tabtype=='chat'}}">
			    <view class="page-bottom-chat">
			        <view class="page-bottom-input">
			            <input bindblur="blurMsg" bindinput="changeMsg" focus="{{chatInputFocus}}" placeholder="发小广告会被处罚哦~" type="text" value="{{callMsg}}"></input>
			        </view>
			        <view bindtap="sendMsg" class="page-bottom-send" wx:if="islogin==1">发送</view>
			        <button bindgetuserinfo="updateUserInfo" openType="getUserInfo" size="mini" style="position:absolute;top:5rpx;right:0rpx;" type="warn" wx:else>发送</button>
			    </view>
			    <view class="page-bottom-botton">
			        <view class="page-bottom-item">
			            <navigator class="page-bottom-text" url="/wxz_wzbagent/pages/movieIndex/movieIndex">
			                <image src="../../../we7/images/index.png"></image>
			            </navigator>
			        </view>
			        <view bindtap="photoAlbum" class="page-bottom-item">
			            <view class="page-bottom-text">
			                <image src="../../../we7/images/photo.png"></image>
			            </view>
			        </view>
			        <view bindtap="photoCamera" class="page-bottom-item">
			            <view class="page-bottom-text">
			                <image src="../../../we7/images/camera.png"></image>
			            </view>
			        </view>
			        <view bindtap="smileFace" class="page-bottom-item">
			            <view class="page-bottom-text">
			                <image src="../../../we7/images/face.png"></image>
			            </view>
			        </view>
			        <view class="page-bottom-item">
			            <navigator class="page-bottom-text" url="/wxz_wzbagent/pages/cash-money/cashMoney?live_id={{live_id}}">
			                <image src="../../../we7/images/redpack.png"></image>
			            </navigator>
			        </view>
			        <view class="page-bottom-item" style="display:block;">
			            <navigator class="page-bottom-text" url="/wxz_wzbagent/pages/money-save/money">
			                <image src="../../../we7/images/cash.png"></image>
			            </navigator>
			        </view>
			        <view bindtap="shareTap" class="page-bottom-item">
			            <view class="page-bottom-text">
			                <image src="../../../we7/images/share.png"></image>
			            </view>
			        </view>
			    </view>
			    <view class="send-face-wrap" wx:if="{{faceShow}}">
			        <swiper autoplay="false" duration="1000" indicatorDots="true">
			            <swiper-item>
			                <view class="face-line-box" wx:for="{{emotions}}" wx:for-index="idx" wx:for-item="itemName">
			                    <view bindtap="sendFace" class="face-item" data-face="1" wx:for="{{itemName}}" wx:key="{{itemName}}">
			                        <image bindtap="selectEmotionImgs" id="{{item['id']}}" src="{{item['src']}}" style="cursor: pointer"></image>
			                    </view>
			                </view>
			            </swiper-item>
			        </swiper>
			    </view>
			</view>
			<view class="share-contain" wx:if="{{shareShow}}">
			    <image bindtap="shareTap" class="delet" src="../../../we7/images/delete.png"></image>
			    <view class="share-title">好直播速围观</view>
			    <view class="share-center">点击下方按钮，邀请好友一起看直播</view>
			    <view class="share-image">
			        <view class="share-image-item share-image-left">
			            <view>
			                <image src="../../../we7/images/cards.png"></image>
			            </view>
			            <view>分享邀请</view>
			        </view>
			        <view class="share-image-item share-image-right">
			            <view>
			                <image src="../../../we7/images/friend.png"></image>
			            </view>
			            <view>分享好友</view>
			        </view>
			    </view>
			</view> -->
			
						<!-- 公告 -->
						<block v-if="format_isshow == 1 && live.format_show_type != 2">
							<view class="notice-box">
								<view class="notice-power" @tap="close_notice"></view>
								<view class="notice-flex">
									<view class="notice">
										<view class="notice-title">
											{{ format.title }}
											<image mode="widthFix" @tap="close_notice"
												src="/static/wxz_wzbagent/resource/images/notice/close.png"
												style="height: 40rpx; width: 40rpx; margin-bottom: -7rpx"></image>
										</view>
										<view class="notice-info">
											<!-- <template is="wxParse" :data="wxParseData:format_content.nodes"></template> -->
											<mp-html :content="article_format_content"></mp-html>
											<image v-if="live.live_gz_show == 1" :src="live.live_gz"
												:show-menu-by-longpress="true" style="width: 85%; margin-left: 7.5%"
												mode="widthFix"></image>
										</view>
										<view class="notice-bottom">
											<image mode="widthFix"
												src="/static/wxz_wzbagent/resource/images/notice/notice03.png"></image>
										</view>
										<view class="notice-close" @tap="close_notice">
											<image mode="widthFix" src="/static/wxz_wzbagent/resource/images/notice/close.png">
											</image>
										</view>
									</view>
								</view>
							</view>
						</block>
						<!-- gift弹出窗 -->
						<block v-if="vote_show_flag == true && vote_gift_open == 1">
							<!--礼物页面开始-->
							<view>
								<block name="vote">
									<view @tap="bindclosevote" class="cover" style="background-color: rgb(0 0 0 / 93%);"></view>
									<view :class="'vote_module w_100 bg_white ' + themes"
										style="height: 60%; background-color: #fff;line-height: 32px;" v-if="vote_flag == false">
										<view class="vote_title t_c h2"
											:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'">
											支持{{ xuan_name }} 排名{{paimingindex+1}} 积分余额:{{mallUser.points}}
											<image @tap="bindclosevote" class="vote_close" src="/static/wxz_wzbagent/resource/images/icon3.png"></image>
										</view>
										<!-- <view class="vote_title t_c h2"
											:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'">
											排名{{ index }}
										</view> -->
										<view v-if="phonewx">
											<view v-if='payment_paypal_id !=1 && phonewx' @tap="bindbuy" :data-xuan_id="xuan_id"
												:data-xuan_name="xuan_name" :data-index="vote_index"
												class="gift_buy h3 rad_3 t_white t_c m_l_t"
												:style="'color:' + (color_three ? color_three : '#fff') + ';background-color:' + (color_one ? color_one : '#C8AF82') + ';'">
												{{ columnsurs.award ? columnsurs.award : '为Ta投票' }}
											</view>
											<view v-else @tap="tonewhref" :data-xuan_id="xuan_id" :data-xuan_name="xuan_name"
												:data-index="vote_index" class="gift_buy h3 rad_3 t_white t_c m_l_t"
												:style="'color:' + (color_three ? color_three : '#fff') + ';background-color:' + (color_one ? color_one : '#C8AF82') + ';'">
												{{ columnsurs.award ? columnsurs.award : '为Ta投票' }}
											</view>
										</view>
										<view v-else>
											<view @tap="bindbuy" :data-xuan_id="xuan_id" :data-xuan_name="xuan_name"
												:data-index="vote_index" class="gift_buy h3 rad_3 t_white t_c m_l_t"
												:style="'color:' + (color_three ? color_three : '#fff') + ';background-color:' + (color_one ? color_one : '#C8AF82') + ';'">
												{{ columnsurs.award ? columnsurs.award : '为Ta投票' }}
											</view>
										</view>
										<view class="vote_content">
											<view class="vote_gift t_gray9 h4 t_c">
												<view @tap="bindchoosegift" class="gift_item m_b" :data-ballot="item.ticket"
													:data-id="item.id" data-type="bills" v-for="(item, index) in bills"
													:key="item.id">
													<view class="gift_img rad_5"
														style="width: 100rpx; height: 100rpx; margin-left: 30rpx; border: 2rpx solid #ccc">
														<image class="w_100 h_100 rad_5" :src="item.pic"></image>
														<view class="gift_choose iconfont icon-xuanzhong"
															:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'"
															v-if="item.id == vote_gift_id"></view>
													</view>
			
													<view class="gift_vote"
														:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'">
														{{ item.ticket }}{{ columnsurs.zan ? columnsurs.zan : '票' }}
													</view>
			
													<view class="gift_money"
														:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'"
														v-if="item.amount == 0">免费</view>
			
													<view class="gift_money"
														:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'" v-else>
														<span v-if="money_flag">￥</span>
														<span v-else>$</span>{{ item.amount / 100 }}
													</view>
												</view>
											</view>
											<!-- <view class="prize_title" style="background-color:{{themeColor.vote_layer.goods.bg}};color:{{themeColor.vote_layer.goods.header}};" wx:if="{{vote_product.goods}}">
					                <view class="prize_title_txt">
					                    <view class="prize_left_line" style="background-color:{{themeColor.vote_layer.goods.header}};"></view>
					                    <view class="prize_right_line" style="background-color:{{themeColor.vote_layer.goods.header}};"></view>
					                    投{{data.tip_text.tip_unit?data.tip_text.tip_unit:'票'}}
					                </view>
					            </view> -->
											<!-- <view class="vote_gift vote_gift_num_{{vote_product.goods.length}} h4 vote_prize" style="background-color:{{themeColor.vote_layer.goods.bg}};" wx:if="{{vote_product.goods}}">
					                <view bindtap="bindchoosegift" class="gift_item " data-ballot="{{item.vote_count}}" data-id="{{item.id}}" data-is_send="{{item.is_send}}" data-type="goods" wx:for="{{vote_product.goods}}" wx:key="id">
					                    <view class="gift_img {{item.id==id?'active':''}} {{vote_product.goods.length>4?'goodsLength':''}}">
					                        <image class="w_100 h_100" src="{{item.product_cover}}" wx:if="{{vote_product.goods.length<=4}}"></image>
					                        <image class="w_100" mode="scaleToFill" src="{{item.product_cover}}" wx:else></image>
					                        <view class="choose_img">
					                            <view class="iconfont icon-gou" style="color:{{themeColor.vote_layer.goods.icon}};" wx:if="{{item.id==id}}"></view>
					                        </view>
					                    </view>
					                    <view class="gift_gname" style="color:{{themeColor.vote_layer.goods.txt1}};">{{item.product_name}}</view>
					                    <view class="gift_txt t_green" style="color:{{themeColor.vote_layer.goods.txt2}};">
					                            {{item.vote_count}}{{data.tip_text.tip_unit?data.tip_text.tip_unit:'票'}}
					                        </view>
					                    <view class="gift_money" style="color:{{themeColor.vote_layer.goods.txt3}};">
					                            {{item.money/100}}{{data.tip_text.tip_currency}}
					                        </view>
					                </view>
					            </view> -->
											<view class="gift_num_label w_100 h4 t_gray9 t_c m_b"
												:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'">
												<span v-if="money_flag">请选择礼物数量</span>
												<span v-else>Please select a gift quantity</span>
											</view>
											<view class="gift_num t_c b_all rad_3">
												<view @tap="bindgiftnum" class="gift_btn fl" data-type="-1"
													:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'">
													<view class="iconfont icon-sub"
														:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'"></view>
												</view>
												<view class="gift_txt fl h2"
													:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'">
													<input type="number" @input="bindchangenum" :value="vote_gift_num"
														style="height: 76rpx; line-height: 76rpx; width: 100%; text-align: center" />
												</view>
												<view @tap="bindgiftnum" class="gift_btn fl" data-type="1"
													:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'">
													<view class="iconfont icon-jiahao"
														:style="'color:' + (color_one ? color_one : '#C8AF82') + ';'"></view>
												</view>
											</view>
											<!-- <text class="buy_txt" style="color:#C8AF82;"></text> -->
										</view>
									</view>
			
									<!-- <view class="prompt bg_white" wx:if="{{flag==true}}">
					        <view class="prompt_bg">
					            <image class="prompt_header" src="../../statics/image/icon37.png"></image>
					            <image bindtap="bindclosevote" class="prompt_close" src="../../statics/image/icon32.png"></image>
					            <image class="prompt_img" src="{{banner_img?banner_img:''}}" wx:if="{{banner_img}}"></image>
					            <text class="prompt_tip h3 t_gray6 t_c m_t">{{vote_gift_type=='goods'?vote_gift_is_send==1?'您的礼物已经在准备':'您的礼物需要到店兑换':vote_success_msg}}</text>
					            <text class="prompt_tip h3 t_gray6 t_c m_b" wx:if="{{vote_gift_type=='goods'}}">{{vote_gift_is_send==1?'请填写收货地址~':'可以前往我的订单页面查看'}}</text>
					            <view bindtap="my" class="prompt_btn bg_green t_c t_white h3 rad_3" style="background-color:#FFAE21" wx:if="{{vote_gift_type=='goods'}}">{{vote_gift_is_send==1?'填写收货地址':'查看我的订单'}}</view>
					            <view bindtap="bindclosevote" class="prompt_btn bg_green t_c t_white h3 rad_3" style="background-color:#FFAE21" wx:else>确定</view>
					            <view bindtap="toMini" class="banner_img" data-appid="{{banner.appid}}" data-extra="{{banner.extra}}" data-path="{{banner.link}}" wx:if="{{banner}}">
					                <image src="{{banner.image}}"></image>
					            </view>
					            <cover-view class="agg_img m_t" wx:if="{{banner==undefined&&agg}}">
					                <ad unitId="{{agg}}"></ad>
					            </cover-view>
					        </view>
					    </view> -->
								</block>
							</view>
							<!--礼物页面结束-->
							<view>
								<!-- parse <template is="vote" :data="themes:themes,xuan_name:xuan_name,xuan_id:xuan_id,vote_index:vote_index,columnsurs:columnsurs,bills:bills,id:vote_gift_id,num:vote_gift_num,flag:
								,color_status,color_one,color_two,color_three"></template> -->
								<block name="vote">
									<block v-if="vote.vote_downtime_status == 4">
										<view class="rang_wrap" v-if="rank_data.length > 0">
											<view class="rang_item rang_item1">
												<image class="rang_icon"
													src="/static/wxz_wzbagent/resource/images/order_ico/rank2.png"></image>
												<view class="rank_head">
													<image class="rang_uhead" mode="widthFix" :src="rank_data[1]['pic']">
													</image>
												</view>
												<view class="rang_name">{{ rank_data[1]['name'] }}</view>
												<view class="rang_vote_count">{{ rank_data[1]['votes'] }}</view>
												<!-- <view class="rang_no">编号：{{rank_data[1]['sort']}}</view> -->
											</view>
											<view class="rang_item rang_item2"
												:style="'background-color:' + themeColor.vrl.bg + ';'">
												<view class="left_wing"
													:style="'border-color:' + themeColor.vrl.top_three.wing + ' transparent transparent;'">
												</view>
												<view class="right_wing"
													:style="'border-color:' + themeColor.vrl.top_three.wing + ' transparent transparent;'">
												</view>
												<image class="rang_icon"
													src="/static/wxz_wzbagent/resource/images/order_ico/rank1.png"></image>
												<view class="rank_head">
													<image class="rang_uhead" mode="widthFix" :src="rank_data[0]['pic']">
													</image>
												</view>
												<view class="rang_name">{{ rank_data[0]['name'] }}</view>
												<view class="rang_vote_count">{{ rank_data[0]['votes'] }}</view>
												<!-- <view class="rang_no">编号：{{rank_data[0]['sort']}}</view> -->
											</view>
											<view class="rang_item rang_item3"
												:style="'background-color:' + themeColor.vrl.bg + ';'">
												<image class="rang_icon"
													src="/static/wxz_wzbagent/resource/images/order_ico/rank3.png"></image>
												<view class="rank_head">
													<image class="rang_uhead" mode="widthFix" :src="rank_data[2]['pic']">
													</image>
												</view>
												<view class="rang_name">{{ rank_data[2]['name'] }}</view>
												<view class="rang_vote_count">{{ rank_data[2]['votes'] }}</view>
												<!-- <view class="rang_no">编号：{{rank_data[2]['sort']}}</view> -->
											</view>
										</view>
										<view class="user_rang t_c h4" v-if="rank_data.length > 2">
											<view class="rang_row fl w_100">
												<view class="w_25">排名</view>
												<!-- <view class="w_20" style="height: 100rpx;">编号</view> -->
												<view class="w_55">姓名</view>
												<view class="w_20">人气数</view>
											</view>
											<view class="rang_row fl w_100" v-if="index > 2" v-for="(item, index) in rank_data"
												:key="index">
												<view class="w_25">
													<image class="rang_three"
														:src="require(`../../resource/images/order_ico/icon-${index+1}@2x.png`)"
														v-if="index + 1 > 3 && index + 1 <= 10"></image>
													<text class="rang_num rad_3"
														v-else-if="index + 1 > 10">{{ index + 1 }}</text>
												</view>
			
												<!-- <view class="w_20">{{item.sort}}</view> -->
			
												<view class="w_55 w_space">{{ item.name }}</view>
			
												<view class="w_20">{{ item.votes }}</view>
											</view>
										</view>
										<view v-if="rank_data.length > 9">
											<view class="load_tip" v-if="!(rank_load === false ? false : true)">- 暂无更多数据 -
											</view>
											<view class="load_tip" v-if="!(rank_load === true ? false : true)">- 上拉加载 -</view>
											<view class="load_icon w_100 t_c" v-if="vote_load === 2">
												<image :lazyLoad="true" mode="aspectFill"
													src="/static/wxz_wzbagent/resource/images/load.gif"></image>
											</view>
										</view>
									</block>
									<block v-else>
										<view :class="['vote_total_nums','vote_total_nums'+themes]"
											v-if="live.ljrq_status == 1 || columnsurs.special"
											:style="'background-color:' + color_one + ';color:' + color_three + ';'">
											<view class="h4" v-if="columnsurs.special">
												{{ columnsurs.special }}
											</view>
											<view :class="['vote_num_item','vote_num_item'+themes]"
												v-if="live.ljrq_status == 1 && live.ljrq_show_type == 0">
												<view class="vote_num_title h4" :style="'color:' + color_three + ';'">参与选手
												</view>
												<view class="vote_num_value" :style="'color:' + color_three + ';'">
													{{ live.vote_totle_count[0].counts }}
												</view>
											</view>
											<view :class="['vote_num_item','vote_num_item'+themes]"
												v-if="live.ljrq_status == 1 && live.ljrq_show_type == 0">
												<view class="vote_num_title h4" :style="'color:' + color_three + ';'">累计人气值
												</view>
												<view class="vote_num_value" :style="'color:' + color_three + ';'">
													{{ live.vote_totle_nums[0].nums }}
												</view>
											</view>
											<view :class="['vote_num_item','vote_num_item'+themes]"
												v-if="live.ljrq_status == 1 && live.ljrq_show_type == 0">
												<view class="vote_num_title h4" :style="'color:' + color_three + ';'">访问量</view>
												<view class="vote_num_value" :style="'color:' + color_three + ';'">
													{{ live.viewer_count }}
												</view>
											</view>
										</view>
										<view class="search"
											:style="'border: ' + (color_one ? '2rpx solid ' + color_one : '') + ';'"
											v-if="vote.hide_search_box != 1">
											<form @submit="votesearch">
												<input @input="searchFun"
													:placeholder="live.id == 8637 ? '请输入节目编号' : '请输入姓名'" value=""
													:placeholder-style="'color:' + color_one + ';'"
													:style="'color:' + color_one + ';background-color: ' + color_three + ';'"
													v-if="color_status == '1'" />
												<input @input="searchFun"
													:placeholder="live.id == 8637 ? '请输入节目编号' : '请输入姓名'" value=""
													placeholder-class="phcolor"
													:style="'color:' + color_one + ';background-color: ' + color_three + ';'"
													v-else />
												<view @tap="votesearch" class="search_icon"
													:style="'background-color:' + color_three + ';'">
													<text class="iconfont icon-sousuo"
														:style="'color:' + (color_one ? color_one : '#fff;')"></text>
												</view>
											</form>
										</view>
										<view v-else-if="vote.hide_search_box == 1" style="margin-top: 8px"></view>
										<view :class="'vote_tab ' + themes" v-if="is_vote_tab != 0">
											<view @tap="bindvotetab"
												:class="'vote_tab_item ' + (columnsurs_selected == 'card1' ? 'selected' : '')"
												data-type="card1" :style="
			                                    'color:' +
			                                    (columnsurs_selected == 'card1' ? color_three : color_one) +
			                                    ';background-color:' +
			                                    (columnsurs_selected == 'card1' ? color_one : color_three) +
			                                    ';border:' +
			                                    (columnsurs_selected == 'card1' ? 0 : '2rpx solid ' + color_one)
			                                ">
												<view class="vote_tab_type">
													<text>{{ columnsurs.card1 }}</text>
												</view>
											</view>
											<view @tap="bindvotetab"
												v-if="(vote.vote_downtime_status != 1 && vote.hide_data_before == 1) || vote.hide_data_before == 0"
												:class="'vote_tab_item ' + (columnsurs_selected == 'card2' ? 'selected' : '') + ' card2'"
												data-type="card2" :style="
			                                    'color:' +
			                                    (columnsurs_selected == 'card2' ? color_three : color_one) +
			                                    ';background-color:' +
			                                    (columnsurs_selected == 'card2' ? color_one : color_three) +
			                                    ';border:' +
			                                    (columnsurs_selected == 'card2' ? 0 : '2rpx solid ' + color_one)
			                                ">
												<view class="vote_tab_type">
													<text>{{ columnsurs.card2 }}</text>
												</view>
											</view>
											<view @tap="bindvotetab"
												:class="'vote_tab_item ' + (columnsurs_selected == 'card3' ? 'selected' : '')"
												data-type="card3" :style="
			                                    'margin-left: ' +
			                                    ((vote.vote_downtime_status != 1 && vote.hide_data_before == 1) || vote.hide_data_before == 0 ? '0px' : '8px') +
			                                    ';color:' +
			                                    (columnsurs_selected == 'card3' ? color_three : color_one) +
			                                    ';background-color:' +
			                                    (columnsurs_selected == 'card3' ? color_one : color_three) +
			                                    ';border:' +
			                                    (columnsurs_selected == 'card3' ? 0 : '2rpx solid ' + color_one)
			                                ">
												<view class="vote_tab_type">
													<text>{{ columnsurs.card3 }}</text>
												</view>
											</view>
										</view>
			
										<view :class="['vote_nums','vote_nums'+themes]"
											:style="'display:block;color:' + color_three + ';background-color:' + color_one + ';' + (live.id == 6387 ? 'padding:50rpx 0' : '')"
											v-if="live.tou_djs_status == 1 && themes==9"
											>
											<view class="vote_num_item" style="width: 100%" v-if="live.tou_djs_status == 1">
												<view class="vote_num_title"
													v-if="vote.vote_downtime_status && !live.tou_djs_text"
													:style="'color:' + color_three + ';'">
													{{ vote.vote_downtime_status == 1 ? '距离投票开始' : vote.vote_downtime_status == 2 ? '距离投票结束' : '投票已结束' }}
												</view>
												<view class="vote_num_title" v-if="live.tou_djs_text"
													:style="'color:' + color_three + ';'">{{ live.tou_djs_text }}</view>
												<view class="vote_num_value time" style="font-size: 25rpx">
													{{ vote.vote_downtime_status != 3 ? vote_downtime.day : '00' }}
													<text style="margin: 0 22rpx">天</text>
													{{ vote.vote_downtime_status != 3 ? vote_downtime.hour : '00' }}
													<text style="margin: 0 22rpx">时</text>
													{{ vote.vote_downtime_status != 3 ? vote_downtime.minute : '00' }}
													<text style="margin: 0 22rpx">分</text>
													{{ vote.vote_downtime_status != 3 ? vote_downtime.second : '00' }}
													<text style="margin: 0 22rpx">秒</text>
												</view>
											</view>
											<view style="display: flex"
												v-if="live.ljrq_status == 1 && live.ljrq_show_type == 1">
												<view :class="['vote_num_item','vote_num_item'+themes]">
													<view class="vote_num_title h4"
														:style="'display: inline-block;color:' + color_three + ';'">参与选手　</view>
													<view class="vote_num_value"
														:style="'display: inline-block;color:' + color_three + ';'">
														{{ live.vote_totle_count[0].counts }}
													</view>
												</view>
												<view :class="['vote_num_item','vote_num_item'+themes]">
													<view class="vote_num_title h4"
														:style="'display: inline-block;color:' + color_three + ';'">累计人气值　
													</view>
													<view class="vote_num_value"
														:style="'display: inline-block;color:' + color_three + ';'">
														{{ live.vote_totle_nums[0].nums }}
													</view>
												</view>
												<view :class="['vote_num_item','vote_num_item'+themes]">
													<view class="vote_num_title h4"
														:style="'display: inline-block;color:' + color_three + ';'">访问量　</view>
													<view class="vote_num_value"
														:style="'display: inline-block;color:' + color_three + ';'">
														{{ live.viewer_count }}
													</view>
												</view>
											</view>
										</view>
			
										<view v-if="columnsurs_selected == 'card1'">
											<view class="user_all">
												<view class="user_item h4" v-if="item.id"
													:style="'border: ' + (color_one ? '2rpx solid ' + color_one : '') + ';border-radius: 8rpx;'"
													v-for="(item, index) in vote_data" :key="index">
													<view hoverClass="none" @tap="vote_info(item.id,live.token,item,index)">
														<view class="user_no t_c t_white h5" v-if="is_vote_num != 0">
															<image src="/static/wxz_wzbagent/resource/images/icon_5.png">
															</image>
															<view>{{ item.sort }}号</view>
														</view>
														<view class="team_name" v-if="item.team_name"
															:style="'color:' + color_three + ';background-color:' + color_one + ';'">
															{{ item.team_name }}
														</view>
														<view class="team_name"
															v-if="item.mechanism_name && (item.live_id == '2058' || item.live_id == '2045' || item.live_id == '2044' || item.live_id == '2043')"
															:style="'color:' + color_three + ';background-color:' + color_one + ';'">
															{{ item.mechanism_name }}
														</view>
														<view class="vote_photo">
															<view :class="['rank_num','rank_num'+themes]"
																v-if="(vote.vote_downtime_status != 1 && vote.hide_data_before == 1) || vote.hide_data_before == 0">
																<image class="rank_num_bg"
																	src="/static/wxz_wzbagent/resource/images/icon36.png">
																</image>
																<view class="rank_txt">
																	排名:
																	<text class="rank_spot"
																		style="font-weight: bold">{{ index + 1 }}</text>
																</view>
															</view>
															<image class="user_img" :lazyLoad="true" mode="aspectFill"
																:src="item.pic"></image>
														</view>
														<view class="user_nick" :style="'color:' + color_one + ';'">
															<view class="w_space fl" style="font-weight: bold">{{ item.name }}
															</view>
															<view class="w_space fr t_r"
																v-if="(vote.vote_downtime_status != 1 && vote.hide_data_before == 1) || vote.hide_data_before == 0">
																{{ item.votes }}{{ columnsurs.zan }}
															</view>
														</view>
													</view>
													<view
														v-if="vote.vote_downtime_status==1 && vote.vote_downtime_status==3 && vote.vote_downtime_status==4 && vote.hide_data_before == 0"
														class="user_btn" :data-xuan_id="item.id" :data-xuan_name="item.name"
														:data-index="index" style="text-decoration:none"
														:style="'color:' + color_three + ';background-color:' + color_one + ';'"
														@tap="tsk">
														{{ columnsurs.award ? columnsurs.award : '打call' }}
													</view>
													<view v-else>
														<a hoverClass="none" :href="item.h5_url"
															v-if="(vote.vote_downtime_status != 1 && vote.hide_data_before == 1) || vote.hide_data_before == 0"
															class="user_btn" :data-xuan_id="item.id" :data-xuan_name="item.name"
															:data-index="index" style="text-decoration:none"
															:style="'color:' + color_three + ';background-color:' + color_one + ';'">
															{{ columnsurs.award ? columnsurs.award : '打call' }}
															<!-- <image class="btn_icon_src" src="{{'../../resource/images/icon2.png'}}"></image> -->
														</a>
													</view>
												</view>
											</view>
											<view v-if="vote_data.length > 9">
												<view class="load_tip" v-if="!(vote_load === false ? false : true)">- 暂无更多数据 -
												</view>
												<view class="load_tip" v-if="!(vote_load === true ? false : true)">- 上拉加载 -
												</view>
												<view class="load_icon w_100 t_c" v-if="vote_load == 2">
													<image :lazyLoad="true" mode="aspectFill"
														src="/static/wxz_wzbagent/resource/images/load.gif"></image>
												</view>
											</view>
										</view>
										<!-- 排行榜 -->
										<view v-if="columnsurs_selected == 'card2'">
											<view class="rang_wrap" v-if="rank_data.length > 0">
												<view class="rang_item rang_item1">
													<image class="rang_icon"
														src="/static/wxz_wzbagent/resource/images/order_ico/rank2.png"></image>
													<view class="rank_head">
														<image class="rang_uhead" mode="widthFix" :src="rank_data[1]['pic']">
														</image>
													</view>
													<view class="rang_name">{{ rank_data[1]['name'] }}</view>
													<view class="rang_vote_count">{{ rank_data[1]['votes'] }}</view>
													<view class="rang_no">编号：{{ rank_data[1]['sort'] }}</view>
												</view>
												<view class="rang_item rang_item2"
													:style="'background-color:' + themeColor.vrl.bg + ';'">
													<view class="left_wing"
														:style="'border-color:' + themeColor.vrl.top_three.wing + ' transparent transparent;'">
													</view>
													<view class="right_wing"
														:style="'border-color:' + themeColor.vrl.top_three.wing + ' transparent transparent;'">
													</view>
													<image class="rang_icon"
														src="/static/wxz_wzbagent/resource/images/order_ico/rank1.png"></image>
													<view class="rank_head">
														<image class="rang_uhead" mode="widthFix" :src="rank_data[0]['pic']">
														</image>
													</view>
													<view class="rang_name">{{ rank_data[0]['name'] }}</view>
													<view class="rang_vote_count">{{ rank_data[0]['votes'] }}</view>
													<view class="rang_no">编号：{{ rank_data[0]['sort'] }}</view>
												</view>
												<view class="rang_item rang_item3"
													:style="'background-color:' + themeColor.vrl.bg + ';'">
													<image class="rang_icon"
														src="/static/wxz_wzbagent/resource/images/order_ico/rank3.png"></image>
													<view class="rank_head">
														<image class="rang_uhead" mode="widthFix" :src="rank_data[2]['pic']">
														</image>
													</view>
													<view class="rang_name">{{ rank_data[2]['name'] }}</view>
													<view class="rang_vote_count">{{ rank_data[2]['votes'] }}</view>
													<view class="rang_no">编号：{{ rank_data[2]['sort'] }}</view>
												</view>
											</view>
											<view class="user_rang t_c h4" v-if="rank_data.length > 2">
												<view class="rang_row fl w_100">
													<view class="w_15">排名</view>
													<view class="w_20" style="height: 100rpx">编号</view>
													<view class="w_45">姓名</view>
													<view class="w_20">人气数</view>
												</view>
												<view class="rang_row fl w_100" v-if="index > 2"
													v-for="(item, index) in rank_data" :key="index">
													<view class="w_15">
														<image class="rang_three"
															:src="require(`../../resource/images/order_ico/icon-${index+1}@2x.png`)"
															v-if="index + 1 > 3 && index + 1 <= 10"></image>
														<text class="rang_num rad_3"
															v-else-if="index + 1 > 10">{{ index + 1 }}</text>
													</view>
			
													<view class="w_20">{{ item.sort }}</view>
			
													<view class="w_45 w_space">{{ item.name }}</view>
			
													<view class="w_20">{{ item.votes }}</view>
												</view>
											</view>
											<view v-if="rank_data.length > 9">
												<view class="load_tip" v-if="!(rank_load === false ? false : true)">- 暂无更多数据 -
												</view>
												<view class="load_tip" v-if="!(rank_load === true ? false : true)">- 上拉加载 -
												</view>
												<view class="load_icon w_100 t_c" v-if="vote_load === 2">
													<image :lazyLoad="true" mode="aspectFill"
														src="/static/wxz_wzbagent/resource/images/load.gif"></image>
												</view>
											</view>
										</view>
										<!-- 规则描述 -->
										<view v-if="columnsurs_selected == 'card3'">
											<view class="page-dec">
												<!-- <template is="wxParse" :data="wxParseData:intro_content.nodes"></template> -->
												<mp-html :content="article_intro_content"></mp-html>
											</view>
										</view>
										<!-- <view hidden="{{!(menu_select_data.type=='vote-user-show')}}">
			    <view class="user_all">
			        <view class="user_item h4" style="background-color:{{themeColor.vus.lists.bg}};{{themeColor.vul.lists.border?'border:1px solid '+themeColor.vul.lists.border:''}}" wx:for="{{data}}" wx:key="index">
			            <navigator hoverClass="none" url="/pages/member/index?token={{token}}&id={{item.id}}&vote_id={{menu_select_data.id}}&vote_user_type={{menu_select_data.vote_user_type}}&type={{menu_select_data.type}}">
			                <view class="user_no t_c t_white h5" wx:if="{{item.no}}">
			                    <image src="../../statics/image/icon_5.png"></image>
			                    <view>{{item.no}}</view>
			                </view>
			                <view style="height:{{vote_detail.post_json.setting.show_template==2?'230rpx':'410rpx'}};width:345rpx;overflow:hidden;position:relative;">
			                    <view class="member_rank" style="background: url(../../statics/image/icon36.png) no-repeat;" wx:if="{{item.team_title}}">
			                      {{item.team_title}}
			                    </view>
			                    <image class="user_img" lazyLoad="true" mode="widthFix" src="{{item.image}}"></image>
			                </view>
			                <view class="user_nick" style="color:{{themeColor.vus.lists.txt1}};text-align:center;font-size:28rpx;">
			                    <view class="teacher_name" vText="item.name">{{item.name}}</view>
			                    <view class="teacher_dianji" wx:if="{{vote_detail.post_json.setting.show_vote_user_view_cnt!=2}}">
			                        <text class="iconfont icon-dianji3"></text>
			                    {{item.view_cnt||0}}
			                  </view>
			                </view>
			            </navigator>
			        </view>
			    </view>
			    <view>
			        <view class="load_tip" hidden="{{load===false?false:true}}">- 暂无更多数据 -</view>
			        <view class="load_tip" hidden="{{load===true?false:true}}">- 上拉加载 -</view>
			        <view class="load_icon w_100 t_c" hidden="{{load!=2}}">
			            <image lazyLoad="true" mode="aspectFill" src="../../statics/image/load.gif"></image>
			        </view>
			    </view> -->
										<!-- </view> -->
										<!-- </view> -->
									</block>
								</block>
							</view>
						</block>
						<view :class="'footer ' + themes" v-if="show_index && themes !== 'themes_zdy' && tabtype != 'chat'">
							{{ live.footer_name }}
						</view>
						<view :class="'footer ' + themes" v-if="show_index && themes == 'themes_zdy'"
							:style="'color:' + live.color_three + ';background-color:' + live.color_one + ';'">
							{{ live.footer_name }}
						</view>
					</view>
				</view>
		</view>
		<view v-else style="text-align: center;margin-top: 100rpx;">
			<view style="font-size: 50rpx; color: #666666;">
				404 Not Found
			</view>
			<view style=" color: #CCCCCC;">
				未找到相应页面或资源(404)
			</view>
		</view>
	</view>
</template>

<script>
	//var iswx=require('../../../common/common.js');
	//import {isWeiXin} from '../../../common/common.js';
	//var o = require("../../resource/wxParse/html2json.js");
	var app = getApp();
	var CryptoJS = require('../../../we7/resource/js/crypto.js');
	var key = CryptoJS.enc.Utf8.parse('@12345678912345!');
	var iv = CryptoJS.enc.Utf8.parse('@12345678912345!');
	const uploadImage = require('../../resource/aliyunoss/uploadAliyun.js');
	import { mallRequest } from '../../../we7/resource/js/service';
	import popupwindow from '@/component/popupwindow/popupwindow.vue';
	import regionPicker from "@/components/region-picker/region-picker.vue";
	import vote_info from "../vote/vote_info.vue"
	//import vote from '../menu/new_vote_list.vue';
	import mall from '../menu/mall.vue';
	export default {
		components: {
			popupwindow,
			regionPicker,
			vote_info,
			mall,
			
			//vote,
		},
		data() {
			return {
				page_type:"正常",
				info_xuan_id: "",
				info_token: "",
				info_flag: true,
				document_url: "",
				rid: 0,
				live_id: 0,
				live: {
					last_qrcode_img: '',
					id: '',
					kp_show_type: 0,
					kp_img: '',
					live_gz_status: '',
					gz_up_text: '',
					live_gz: '',
					gz_down_text: '',
					live_banner_status: 0,
					comment_auth: 0,
					live_cover: '',
					live_video: '',
					live_banner: '',
					live_banner2: '',
					live_banner3: '',
					live_banner4: '',
					live_banner5: '',
					live_banner6: '',
					live_banner7: '',
					other_banners: [],
					live_status: '',
					live_djs_text: '',
					num_show: '',
					viewer_count: '',
					audit: 0,
					show_toushu: 0,
					live_mp3_status: 0,
					rollcontent: '',
					live_wl_status: 0,
					live_wl: '',
					wl_name: '',
					color_three: '',
					color_one: '',
					enroll_height: 0,
					is_pay_bao: 0,
					bao_submit_text: false,
					ljrq_status: 0,
					ljrq_show_type: 0,
					vote_totle_count: '',
					vote_totle_nums: '',
					tou_djs_status: 0,
					tou_djs_text: '',
					token: '',
					wxapp_id: 0,
					format_show_type: 0,
					live_gz_show: 0,
					footer_name: ''
				},
				contentImage: '',
				//首页默认数据
				wxapp_id: 0,

				//所属小程序
				show_new: 0,

				//显示前往最新
				themes: '',

				//主题
				format: {},

				//公告
				on: true,

				// 控制音乐的状态，以及图标是否旋转
				showControls: false,

				//直播全屏操作按钮显示
				fullScreenFlag: false,

				//直播是否全屏
				format_isshow: 0,

				//公告是否显示
				animation: null,

				//滚动广告
				timer: null,

				//滚动广告
				duration: 0,

				//滚动广告
				textWidth: 0,

				//滚动广告
				wrapWidth: 0,

				//滚动广告
				nav: {},

				//导航
				tab: true,

				//选中tab的编号
				tab_id: 0,

				//选中tab的id
				tabtype: '',

				//tab种类
				WxParseListArr: [],

				//描述数组
				callMsg: '',

				issendPic: 0,
				msg: [],
				emotions: [],
				tempFilePaths: '',
				streamType: 1,
				stream: '',
				faceShow: false,
				shareShow: false,

				vote: {
					vote_downtime_status: 0,
					hide_search_box: 0,
					hide_data_before: 0
				},

				//投票数据
				is_vote_tab: 1,

				is_vote_num: 1,
				live_downtime: {},

				//直播开始倒计时
				live_downtime_status: 1,

				//1正在倒计时 0：已开始不显示倒计时
				vote_downtime: {},

				//投票倒计时
				vote_data: {},

				//选手
				rank_data: {},

				//排行
				columnsurs: {
					special: '',
					card1: '',
					card2: '',
					card3: '',
					zan: ''
				},

				//选手三个tab的数据
				columnsurs_selected: 'card1',

				//选手三个tab默认选中第一个
				search: '',

				//搜索框的值
				vote_page: 1,

				//选手分页
				vote_load: true,

				//选手加载
				rank_page: 1,

				//排名分页
				rank_load: true,

				//排名加载
				qu_rank_data: {},

				//团体排行
				qu_rank_page: 1,

				//团体排行分页
				qu_rank_load: true,

				//团体排行加载
				count_rank: {
					is_rank: '',
					special_id: ''
				},

				//赛区排行
				//投票框数据
				bills: {},
				info_xuan: "",
				//礼物
				vote_show_flag: false,

				//显示投票框
				vote_flag: false,

				//显示投票框
				vote_gift_open: 0,

				//显示投票框
				xuan_name: 0,

				//选手姓名
				xuan_id: 0,

				vote_gift_id: 0,

				//礼物id
				vote_gift_num: 1,

				//礼物数量
				vote_index: 0,

				//第几个选手
				onlineLicenseGroupTemp: '',

				onlineLicenseAge: '',

				//报名数据
				enroll_status: 0,

				//报名状态
				enroll_fields: {},

				//报名字段
				apply_param_images: [],

				//选手图片数组
				apply_param_images_other: [],

				apply_param_images_other2: [],
				apply_param_video_url: '',

				//选手视频url
				apply_param_video_other_url: '',

				apply_param_video_other2_url: '',
				apply_param_music_url: '',

				//选手音频url
				apply_param_name: '',

				//姓名
				apply_param_tel: '',

				//手机号
				apply_param_sex: '',

				//性别
				apply_param_age: '',

				//年龄
				apply_param_birth: '',

				//出生年月
				apply_param_major: '',

				//专业项目
				apply_param_height: '',

				//身高
				apply_param_sanwei: '',

				//三围
				apply_param_idnumber: '',

				//身份证号
				apply_param_wechat: '',

				//微信号
				apply_param_address: '',

				//家庭住址
				apply_param_area: '',

				//所属地区
				apply_param_bao_group: '',

				//参赛组别
				apply_param_groups: '',

				//新参赛组别
				apply_param_linkage_groups: '',

				apply_param_item_name: '',

				//节目名称
				apply_param_song_name: '',

				//曲目名称
				apply_param_works_name: '',

				//作品名称
				apply_param_instructor: '',

				//指导老师
				apply_param_instructor_tel: '',

				//指导老师电话
				apply_param_talent_group: '',

				//才艺类别
				apply_param_mechanism_name: '',

				//机构名称
				apply_param_mechanism_tel: '',

				//机构电话
				apply_param_group_number: '',

				//团体人数
				apply_param_introduce: '',

				//自我介绍
				apply_param_content: '',

				//个人简介
				apply_param_prize: '',

				//获奖经历
				apply_param_declaration: '',

				//参赛宣言
				apply_param_past: '',

				//历届参赛情况
				apply_param_form_radio: '',

				apply_param_form_checkbox: '',
				apply_param_region: [],
				apply_param_pay: 0,
				document_1_url: '',
				bao_group: {},

				//报名选项
				isShow: 0,

				//下拉显示
				isShowGroups: 0,

				isShowXxGroups: 0,

				//查询线下成绩组别显示
				XxGroups: '',

				//查询线下成绩 选中组别
				XxGroupRes: [],

				//查询线下成绩 组别集合
				XxName: '',

				//查询线下成绩 输入的名字
				XxStatus: 0,

				//查询线下成绩 查询是否成功
				XxData: {
					name: '',
					groups: '',
					number: '',
					rank: '',
					fen: '',
					win: '',
					time: '',
					beizhu: ''
				},

				//查询线下成绩 查询到的数据
				Height: '',

				//顶部bar高度
				kp_time: 0,

				//开屏显示状态
				show_index: 1,

				//是否显示底部内容和投诉
				groupIndex: '',

				//参赛组别序号
				multiIndex: ['', 0],

				//联动序号
				multiArrayTemp: '',

				need_jump: 0,
				showAgreement: 0,
				isAgree: 0,
				liveNetworkStatus: 1,
				socketClientName: '',
				socketMsgQueue: [],
				chatMsgArr: [],
				userInfoCheck: 0,
				showShareWindow: 0,
				winWid: '',
				winHei: '',
				rk_uid: '',
				token: '',
				from: '',
				is_black: '',
				jump_appid: '',
				jump_title: '',
				jump_content: '',
				onlineLicenseGroups: '',
				parameters: [],
				offlineParameters: [],
				vote_all: '',
				vote_data_all: '',
				rank_data_all: '',
				is_xxfen_des: '',
				color_status: '',
				color_one: '',
				color_two: '',
				color_three: '',
				animationData: '',
				socketError: 0,
				socketClientId: '',
				chatMessage: '',
				visible: '',
				photoLivePage: 0,
				tab_name: '',
				XxMobile: '',
				onlineLicenseGroupIndex: '',
				onlineLicenseName: '',
				olStatus: 0,
				title: '', //H5标题
				olData: {
					entry_other_data: {
						url: '',
						title: [],
						value: ''
					},

					name: '',
					groups: '',
					entry_num: '',
					live_id: 0,
					entry_date: '',
					entry_time: '',
					entry_address: '',

					live: {
						rid: '',
						id: ''
					}
				},

				enroll_sort: '',
				photoLiveData: '',

				themeColor: {
					vs: {
						iamge: {
							add_icon: ''
						}
					},

					vrl: {
						bg: '',

						top_three: {
							wing: ''
						}
					}
				},

				customItem: '',

				select: {
					idx: ''
				},

				form_radio: {
					checked: ''
				},

				pay: {
					checked: false
				},

				form_checkbox: {
					checked: ''
				},

				article_enroll_content: '',
				article_agreement_content: '',
				counts: '',
				nums: '',
				article_intro_content: '',
				name: '',
				onlineLicenseNameGroupIndex: 0,
				article_format_content: '',
				showPayIframe: 0,
				payIframeUrl: '',
				iframeurl: '',
				money_flag: true,
				phonewx: false,
				paimingindex:1,
				goodsList:{},
				goodsInfo:{},
				mallUser:{},
				showGoodsBox:0,
				boxGoodsInfo:{},
				boxGoodsNums:0,
				points:'',
			};
		}, // 默认数据
		onLoad: function(t) {
			if (isWeiXin()) {
				console.log('当前是微信')
				this.phonewx = true
			} else if (/AlipayClient/.test(window.navigator.userAgent)) {
				console.log('当前是支付宝')
			} else {
				this.money_flag = false
				console.log(/AlipayClient/.test(window.navigator.userAgent), 22222)
			}
			// console.log(,11111111111111)
			//暂时隐藏
			// uni.setKeepScreenOn({
			//     keepScreenOn: true
			// });
			// wx.hideShareMenu({})
			//uni.setStorageSync('uid', 1000000);
			// console.log(t,123456789)
			
			this.getCode();
			this.share(t.token);
			var that = this;
			/*const urlParams = new URLSearchParams(window.location.search);
			urlParams.delete('uniacid'); //删除url上面的uniacid参数
			urlParams.delete('uid'); //删除url上面的uid参数
			urlParams.delete('wxopenid'); //删除url上面的wxopenid参数
			var paramValue = urlParams.get('s');
			urlParams.delete('s'); //删除url上面的wxopenid参数
			// window.location.search = urlParams.toString();
			// urlParams.get("s");
			
			if(paramValue){
				that.setData({
					page_type:'正常',
				});
				console.log('正常')
			}else{
				that.setData({
					page_type:404,
				});
				console.log('404')
			}*/
			
			that.setData({
				page_type:uni.getStorageSync('page_type'),
				alisbs: /AlipayClient/i.test(window.navigator.userAgent),
				winWid: uni.getSystemInfoSync().windowWidth,
				//获取当前屏幕的宽度
				winHei: uni.getSystemInfoSync().windowHeight //获取当前屏幕的高度
			});
			console.log(that.page_type)
			// console.log(that.alisbs,11111111)
			const scene = decodeURIComponent(t.scene);
			const userInfo = uni.getStorageSync('userInfo');
			if (userInfo) {
				that.setData({
					userInfoCheck: 1
				});
			}
			if (t.rk_uid) {
				that.setData({
					rk_uid: t.rk_uid
				});
			}
			// if(t.xuan_id && t.tab && t.xuan_id !== 'undefined')
			// {
			//   that.setData({
			//     _xuan_id:t.xuan_id,
			//     _tab:t.tab,
			//   })
			// }

			if (scene !== 'undefined') {
				//扫码进入
				scene.split('&').forEach((item) => {
					const key = item.split('=')[0];
					if (key == 'token') {
						that.login(item.split('=')[1], '', '', '');
					}
				});
				that.setData({
					columnsurs_selected: 'card1',
					vote_page: 1,
					rank_page: 1,
					qu_rank_page: 1,
					search: '',
					vote_load: true,
					rank_load: true,
					qu_rank_load: true,
					vote_data: {},
					rank_data: {},
					qu_rank_data: {}
				});
				that.get_live();
			} else {
				that.login(t.token, t.share_uid, t.from, t.rk_uid);
				//通过分享进入
				if (t.token) {
					//分享传的有值
					that.setData({
						token: t.token,
						from: t.from
					});
					that.get_live();
				} else {
					//分享传的无值（包含重新进入小程序）
					app.globalData.util.request({
						url: 'lives_new&r=home',
						data: {
							wxapp_id: getApp().globalData.siteInfo.wxapp_id
						},
						cachetime: '0',
						showLoading: true,
						success: function(t) {
							var a = t.data.data;
							if (!a.rid) {
								/*判断是否是点击了重新进入小程序 */
								if (uni.getStorageSync('page') == 'new_zhuan_index') {
									var special_id = uni.getStorageSync('special_id');
									uni.redirectTo({
										url: '../zhuan/new_index?id=' + special_id
									});
								}
								if (uni.getStorageSync('page') == 'zhuan_index') {
									var special_id = uni.getStorageSync('special_id');
									uni.redirectTo({
										url: '../zhuan/index?id=' + special_id
									});
								}
								if (uni.getStorageSync('page') == 'ali_index') {
									var special_id = uni.getStorageSync('special_id');
									uni.redirectTo({
										url: '../zhuan/ali_index?id=' + special_id
									});
								}
								if (uni.getStorageSync('page') == 'index') {
									var token = uni.getStorageSync('token');
									uni.redirectTo({
										url: '../movie/movie?token=' + token
									});
								}
								that.setData({
									show_index: 0
								});
								return false;
							} else {
								/*清除缓存 */
								uni.clearStorageSync();
							}
							that.setData({
								token: a.token
							});
							that.get_live();
						}
					});
				}
			}
			//uni.startPullDownRefresh();
		},
		//滚动广告
		onHide() {
			this.destroyTimer();
			this.setData({
				timer: null
			});
		},
		onUnload() {
			this.destroyTimer();
			this.setData({
				timer: null
			});
		},
		//触底加载
		onReachBottom: function() {
			var that = this;
			//当前在选手tab下才执行
			if (!that.kp_time) {
				if (that.tabtype == 'vote') {
					if (that.columnsurs_selected == 'card1' && that.vote_load == true) {
						var new_vote_page = that.vote_page + 1;
						that.setData({
							vote_page: new_vote_page,
							vote_load: 2
						});
						that.getvote('vote');
					}
					if (that.columnsurs_selected == 'card2' && that.rank_load == true) {
						var new_rank_page = that.rank_page + 1;
						that.setData({
							rank_page: new_rank_page,
							rank_load: 2
						});
						that.getrank();
					}
				} else if (that.tabtype == 'vz_photo_live') {
					//微赞系图片直播
					that.getPhotoLiveData(that.tab, that.photoLivePage + 1);
				}
			}
		},
		//上拉刷新
		onPullDownRefresh() {
			var that = this;
			if (that.showAgreement == 1) {
				return;
			}
			that.setData({
				tab_id: 0,
				vote_page: 1
			});
			that.get_live();
			//uni.createLivePlayerContext('live-player').play();
			//console.log('刷新');
			// 处理完成后，终止下拉刷新
			uni.stopPullDownRefresh();
		},
		//----------------------------互动----------------------------------//

		//互动调用主体函数
		// onShow: function() {
		// var that = this;
		// t.requestInitIM(), t.initEmotionUL(), wx.setKeepScreenOn({
		//     keepScreenOn: !0
		// });
		// },

		// requestInitIM: function() {
		//     var t = this;
		//     s.util.request({
		//         url: "config&r=getChatConfig",
		//         data: {
		//             live_id: t.data.live_id
		//         },
		//         cachetime: "60",
		//         success: function(e) {
		//             var o = e.data.data.config;
		//             t.setData({
		//                 chat: o
		//             });
		//             var s = {
		//                 sdkappid: o.sdkappid,
		//                 accountType: 13195,
		//                 accountMode: 1
		//             };
		//             t.setData({
		//                 avChatRoomId: o.im_group_id,
		//                 Identifier: o.identifier,
		//                 UserSig: o.userSig
		//             }), a.init({
		//                 sdkappid: o.sdkappid
		//             }), t.initIM(i, s);
		//         }
		//     });
		// },
		// receiveMsg: function(t) {
		//     var e = this, a = this.data.msg || [], i = t.content, o = /群提示消息/gi;
		//     if (!o.test(i)) {
		//         var s = /data\=(.*?)\,\s+desc\=(.*?)\,\s+ext\=(.*)/i, n = i.match(s);
		//         if (n) {
		//             var c = n[3], r = (c = JSON.parse(c)).live_id, u = c.nickname, l = c.avatar, d = c.ispic;
		//             (o = /系统消息/gi).test(u) || r == e.data.live_id && (t.content = n[1], t.fromAccountNick = u,
		//             t.avatar = l, t.ispic = d, t.hasface = 0, 0 == d && (t.content = this.msgHandle(t.content)),
		//             a.unshift(t), this.setData({
		//                 msg: a,
		//                 bottom_scroll_top: this.data.bottom_scroll_top + 50
		//             }));
		//         }
		//     }
		// },
		// msgHandle: function(e) {
		//     t.Emotions;
		//     var a = e, i = /\[(.*?)\]/g, s = a.match(i);
		//     for (var n in s) {
		//         var i = new RegExp("\\" + s[n], "g"), c = t.EmotionDataIndexs[s[n]];
		//         void 0 !== t.Emotions[c][1] && (a = a.replace(i, "<img class='emojia' src='" + t.Emotions[c][1] + "'/>"));
		//     }
		//     return o.html2json(a, "msgtosend").nodes;
		// },
		// initIM: function(a, i) {
		//     var o = this, s = o.data.avChatRoomId;
		//     e.init({
		//         accountMode: i.accountMode,
		//         accountType: i.accountType,
		//         sdkAppID: i.sdkappid,
		//         avChatRoomId: s,
		//         selType: t.SESSION_TYPE.GROUP,
		//         selToID: s,
		//         selSess: null
		//     });
		//     var n = {
		//         sdkAppID: i.sdkappid,
		//         appIDAt3rd: i.sdkappid,
		//         accountType: i.accountType,
		//         identifier: o.data.Identifier,
		//         identifierNick: a.nickname,
		//         avatar: a.avatar,
		//         userSig: o.data.UserSig,
		//         live_id: o.data.live_id
		//     }, c = (e.onDestoryGroupNotify, e.onRevokeGroupNotify, e.onCustomGroupNotify, {
		//         onConnNotify: e.onConnNotify,
		//         onBigGroupMsgNotify: function(t) {
		//             e.onBigGroupMsgNotify(t, function(t) {
		//                 o.receiveMsg(t);
		//             });
		//         },
		//         onMsgNotify: e.onMsgNotify,
		//         onGroupSystemNotifys: e.onGroupSystemNotifys,
		//         onGroupInfoChangeNotify: e.onGroupInfoChangeNotify
		//     }), r = {
		//         isAccessFormalEnv: !0,
		//         isLogOn: !1
		//     };
		//     1 == i.accountMode ? e.sdkLogin(n, c, r, s) : e.sdkLogin(n, c, r);
		// },
		// updateUserInfo: function(t) {
		//     // s.util.getUserInfo(function(t) {}, t.detail);
		// },
		// logoutIM: function() {
		//     e.logout();
		// },
		// chunk: function(t, e) {
		//     var a = t.length;
		//     if (!a || !e || e < 1) return [];
		//     for (var i = 0, o = 0, s = new Array(Math.ceil(a / e)); i < a; ) s[o++] = t.slice(i, i += e);
		//     return s;
		// },
		// selectEmotionImgs: function(t) {
		//     var e = this, a = this.data.callMsg;
		//     e.setData({
		//         callMsg: a + t.currentTarget.id
		//     });
		// },
		// initEmotionUL: function() {
		//     var e = [];
		//     for (var a in t.Emotions) e.push({
		//         src: t.Emotions[a][1],
		//         id: t.Emotions[a][0]
		//     });
		//     this.setData({
		//         emotions: this.chunk(e, 8)
		//     });
		// },

		// getCommit: function() {
		//     var t = this, e = this.data.msg || [];
		//     s.util.request({
		//         url: "comment",
		//         data: {
		//             live_id: t.data.live_id
		//         },
		//         cachetime: "30",
		//         showLoading: !0,
		//         success: function(a) {
		//             a.data.data.data.forEach(function(a, i, o) {
		//                 var s = a.content;
		//                 0 == a.ispic && (s = t.msgHandle(a.content)), e.push({
		//                     content: s,
		//                     ispic: a.ispic,
		//                     fromAccountNick: a.fromAccountNick,
		//                     avatar: a.avatar
		//                 });
		//             }), t.setData({
		//                 msg: e
		//             }), console.log(t.data.msg);
		//         }
		//     });
		// },
		// sendMsg: function(t) {
		//     var a = this, i = this.data.callMsg;
		//     if (i.replace(/^\s*|\s*$/g, "")) {
		//         a.setData({
		//             isShowMesg: !1
		//         });
		//         var o = this.data.issendPic;
		//         this.setData({
		//             bottom_scroll_top: this.data.bottom_scroll_top + 300
		//         }), s.util.request({
		//             url: "comment&r=add",
		//             data: {
		//                 live_id: a.data.live_id,
		//                 ispic: o,
		//                 content: i
		//             },
		//             cachetime: "30",
		//             showLoading: !0,
		//             success: function(t) {}
		//         }), e.onSendMsg(i, o, function() {
		//             a.setData({
		//                 callMsg: "",
		//                 issendPic: 0
		//             });
		//         });
		//     }
		// },
		// changeMsg: function(t) {
		//     var e = t.detail.value;
		//     console.log(e), this.setData({
		//         callMsg: e
		//     });
		// },
		// smileFace: function() {
		//     this.setData({
		//         faceShow: !this.data.faceShow
		//     });
		// },
		// sendFace: function(t) {
		//     console.log(t.target.dataset.face), this.setData({
		//         faceShow: !this.data.faceShow
		//     });
		// },
		// convertHtmlToText: function(t) {
		//     var e = "" + t;
		//     return e = e.replace(/<\/image>/gi, "\r\n"), console.log(e), e = e.replace(/(?:(?:\r\n|\r|\n)\s*){2,}/gim, "\r\n\r\n"),
		//     e = e.replace(/ +(?= )/g, ""), e = e.replace(/ /gi, " "), e = e.replace(/&/gi, "&"),
		//     e = e.replace(/"/gi, '"'), e = e.replace(/</gi, "<"), e = e.replace(/>/gi, ">");
		// },
		// //互动选择上传图片
		// photoAlbum: function() {
		//     var t = this;
		//     wx.chooseImage({
		//         count: 1,
		//         sizeType: [ "original", "compressed" ],
		//         sourceType: [ "album" ],
		//         success: function(e) {
		//             t.setData({
		//                 tempFilePaths: e.tempFilePaths
		//             }), t.upload(e.tempFilePaths[0]);
		//         },
		//         error: function(t) {
		//             console.log(2222222, t);
		//         }
		//     });
		// },
		// //互动上传图片
		// upload: function(t) {
		//     var e = this;
		//     wx.uploadFile({
		//         url: s.util.url("upload"),
		//         filePath: t,
		//         name: "file",
		//         formData: {
		//             user: "test"
		//         },
		//         success: function(t) {
		//             var a = JSON.parse(t.data);
		//             e.setData({
		//                 callMsg: a.data.path,
		//                 issendPic: 1
		//             });
		//         }
		//     }), e.sendMsg();
		// },
		// //互动调用相机拍照
		// photoCamera: function() {
		//     var t = this;
		//     wx.chooseImage({
		//         count: 1,
		//         sizeType: [ "original", "compressed" ],
		//         sourceType: [ "camera" ],
		//         success: function(e) {
		//             console.log(11111111, e), t.setData({
		//                 tempFilePaths: e.tempFilePaths
		//             }), t.upload(e.tempFilePaths[0]);
		//         },
		//         error: function(t) {
		//             console.log(2222222222, t);
		//         }
		//     });
		// },
		// shareTap: function() {
		//     this.setData({
		//         shareShow: !this.data.shareShow
		//     });
		// },
		//----------------------------互动----------------------------------//
		//小程序分享
		//
		//分享以及转发朋友圈
		onShareAppMessage: function() {
			return {
				title: this.live.share_title ? this.live.share_title : this.live.title,
				withShareTicket: true,
				path: '/wxz_wzbagent/pages/movie/movie?token=' + this.token + '&share_uid=' + uni.getStorageSync(
					'uid') + '&from=message'
			};
		},
		onShareTimeline: function() {
			return {
				title: this.live.share_title ? this.live.share_title : this.live.title,
				path: '/wxz_wzbagent/pages/movie/movie?token=' + this.token + '&from=timeline' + '&share_uid=' + uni
					.getStorageSync('uid'),
				imageUrl: this.live.sharetimeline_img_url,
				query: 'token=' + this.token + '&from=timeline'
			};
		},
		mounted() {
			// if(isWeixin()){

			// }
			const s = document.createElement('script');
			s.type = 'text/javascript';
			s.src = 'https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.min.js';
			document.body.appendChild(s);
			window.onload = () => { //初始化产生一个全局变量 AlipayJSBridge
				this.readys()
			}




		},
		methods: {
			closePop(e) {
				this.visible = 0
			},
			readys(callback) {
				console.log(window)
				if (window.AlipayJSBridge) {
					callback && callback();
				} else {
					document.addEventListener('AlipayJSBridgeReady', callback, false);
				}
			},
			tradePay(tradeNO, type, data) {
				// 通过传入交易号唤起快捷调用方式(注意tradeNO大小写严格)
				const that = this
				AlipayJSBridge.call("tradePay", {
					tradeNO: tradeNO //tradeNO.reserved_transaction_id
				}, function(result) {
					//alert(JSON.stringify(result));
					that.setData({
						vote_show_flag: false
					});
					if (result.resultCode == 9000) {
						uni.showToast({
							title: '支付成功!',
							icon: 'none',
							success() {
								setTimeout(() => {
									switch (type) {
										case 'gift':
											that.get_live();
											break;
										case 'enroll':
											that.ti_bao(data);
											break;
									}
								}, 1000)
							}
						})
					} else {
						uni.showToast({
							title: '支付失败!',
							icon: 'none'
						})
					}
				});
			},
			goLink(link) {
				window.open(link, '_self')
			},
			login: function(liveId, share_uid, from, rk_uid) {
				// #ifdef H5
				//if(isWeiXin()){
				//let wxopenid=uni.getStorageSync('wxopenid');
				// if(!wxopenid){


				// this.getCode(liveId, share_uid, from, rk_uid);



				//}
				// }
				// #endif
				// #ifndef H5
				// var that = this;
				// uni.login({
				// 	success(res) {
				// 		if (res.code) {
				// 			app.globalData.util.request({
				// 				url: 'login_new&op=black_check',
				// 				data: {
				// 					live_id: liveId,
				// 					code: res.code,
				// 					share_uid: share_uid,
				// 					from: from,
				// 					rk_uid: rk_uid
				// 				},
				// 				cachetime: '0',
				// 				showLoading: true,
				// 				success: function(t) {
				// 					if (t.data.data.uid) {
				// 						uni.setStorageSync('uid', t.data.data.uid);
				// 					}
				// 					if (t.data.data.is_black == 1 || t.data.data.is_black == '0') {
				// 						that.setData({
				// 							is_black: t.data.data.is_black
				// 						});
				// 					}
				// 				}
				// 			});
				// 		} else {
				// 			console.log('登录失败！' + res.errMsg);
				// 		}
				// 	}
				// });
				// #endif
			},
			//获取主要数据
			get_live: function() {
				var that = this;
				var is_black = this.is_black;
				if (uni.getStorageSync('userInfo')) {
					that.setData({
						socketClientName: uni.getStorageSync('userInfo').nickName
					});
				}
				if (typeof is_black == 'undefined' && this.from != 'timeline') {
					setTimeout(() => {
						that.get_live();
					}, 200);
					return;
				} else if (is_black == 1) {
					return;
				}

				/*
    if(!e.data.live_id && !e.data.rid ){
        var id =  wx.getStorageSync('id');
        var rid =  wx.getStorageSync('rid');
        e.setData({
            live_id: id,
            rid: rid
        });
    }else{
        wx.setStorage({
            key:"id",
            data:e.data.live_id
        });
        wx.setStorage({
            key:"rid",
            data:e.data.rid
        });
        wx.setStorage({
            key:"page",
            data:"index"
        });
    }*/
				if (!that.token) {
					var token = uni.getStorageSync('token');
					that.setData({
						token: token
					});
				} else {
					uni.setStorage({
						key: 'token',
						data: that.token
					});
					uni.setStorage({
						key: 'page',
						data: 'index'
					});
				}
				
				app.globalData.util.request({
					url: 'lives_new',
					data: {
						token: that.token,
						uid: uni.getStorageSync('uid'),
						wxopenid: uni.getStorageSync('wxopenid'),
						uniacid: uni.getStorageSync('uniacid'),
						// xuan_id: e.data._xuan_id,
						// tab: e.data._tab
					},
					cachetime: '0',
					showLoading: true,
					success: function(t) {
						var a = t.data.data;
						uni.setNavigationBarTitle({
							title: a.live.title
						})
						// if (a.live.wxapp_id != getApp().globalData.siteInfo.wxapp_id && a.live.id != 364) {
						//     if (!a.live.last_qrcode_img) {
						//         uni.showModal({
						//             title: a.live.jump_title,
						//             content: a.live.jump_content,
						//             showCancel: false,
						//             confirmText: '确定',
						//             success(res) {
						//                 if (res.confirm) {
						//                     uni.navigateToMiniProgram({
						//                         appId: a.appid,
						//                         path: '/wxz_wzbagent/pages/movie/movie' + '?token=' + a.live.token,
						//                         success(res) {
						//                             //wx.exitMiniProgram();
						//                         },
						//                         complete() {
						//                             let currentPages = getCurrentPages();
						//                             if (
						//                                 currentPages.length > 1 &&
						//                                 (currentPages[0].__route__ == 'wxz_wzbagent/pages/zhuan/new_index' ||
						//                                     currentPages[0].__route__ == 'wxz_wzbagent/pages/zhuan/index')
						//                             ) {
						//                                 uni.navigateBack({
						//                                     delta: 1
						//                                 });
						//                             }
						//                         },
						//                         fail() {}
						//                     });
						//                 }
						//             }
						//         });
						//     }
						//     that.setData({
						//         jump_appid: a.appid,
						//         need_jump: 1,
						//         jump_title: a.live.jump_title,
						//         jump_content: a.live.jump_content,
						//         live_id: a.live.id,
						//         rid: a.live.rid,
						//         live: {
						//             last_qrcode_img: a.live.last_qrcode_img
						//         }
						//     });
						//     if (a.live.jump_force == 0) {
						//         return;
						//     }
						// }
						if (a.nav[0]) {
							var tabtype = a.nav[0]['typename'];
						} else {
							var tabtype = '';
						}
						if (a.live.bao_group) {
							var bao_group = JSON.parse(a.live.bao_group);
						} else {
							var bao_group = '';
						}
						//第一个tab如果是报名
						if (a.nav[0]['typename'] == 'enroll') {
							var enroll_fields = a.nav[0]['setting'];
							//var multiArrayTemp = a.nav[0]['setting'][35]['temp'] ,multiArray = a.nav[0]['setting'][35]['datas'];
						} else {
							var enroll_fields = '';
						}
						//第一个tab如果是 查线下分
						if (a.nav[0]['typename'] == 'xx_fen') {
							var XxGroupRes = a.nav[0]['XxGroupRes'];
						} else {
							var XxGroupRes = '';
						}
						that.offlineParameters = []
						a.nav.forEach(item => {
							if (item.typename == 'xx_fen' && item.config) {
								let config = JSON.parse(item.config)
								Object.keys(config).forEach(key => {
									if (config[key].is_show == 1) {
										that.offlineParameters.push(config[key])
										// Object.assign(data,...config[key])
									}
								})
								that.offlineParameters.forEach(item2 => {
									item2.value = ''
									Object.keys(item2).forEach(key => {
										if (key == 'search_field') {
											item2[item2['search_field']] = ''
										}
									})
								})
							}
						})
						//第一个tab如果是 投票
						var vote = (vote_data = rank_data = []);
						if (a.nav[0]['typename'] == 'vote') {
							var vote = a.vote && a.vote[a.firstid] ? a.vote[a.firstid] : '';
							var vote_data = a.vote_data && a.vote_data[a.firstid] ? a.vote_data[a
								.firstid] : '';
							var rank_data = vote_data;
						}
						if (a.nav[0]['typename'] == 'online_license') {
							that.setData({
								onlineLicenseGroups: a.nav[0]['OnlineLicenseGroups']
							});
						}
						that.parameters = []
						a.nav.forEach(item => {
							if (item.typename == 'online_license' && item.config) {
								let config = JSON.parse(item.config)
								Object.keys(config).forEach(key => {
									if (config[key].is_show == 1) {
										that.parameters.push(config[key])
										// Object.assign(data,...config[key])
									}
								})
								that.parameters.forEach(item2 => {
									item2.value = ''
									Object.keys(item2).forEach(key => {
										if (key == 'search_field') {
											item2[item2['search_field']] = ''
										}
									})
								})
							}
						})
						console.log(that.parameters, 'that.parameters');
						if (a.nav[0]['typename'] == 'chat') {
							that.openChat();
						}
						//判断是否自定义颜色
						if (a.live.color_status !== '0') {
							a.themes = 'zdy';
						} else {
							a.live.color_one = '';
							a.live.color_two = '';
							a.live.color_three = '';
						}
						that.setData({
							live: a.live,
							wxapp_id: a.live.wxapp_id,
							themes: 'themes_' + a.themes,
							live_id: a.live.id,
							rid: a.live.rid,
							tab: a.firstid,
							tabtype: tabtype,
							streamType: a.stream.type,
							stream: a.stream.stream,
							nav: a.nav,
							is_vote_tab: a.live.is_vote_tab,
							is_vote_num: a.live.is_vote_num,
							vote_all: a.vote,
							vote_data_all: a.vote_data,
							rank_data_all: a.vote_data,
							vote: vote,
							vote_data: vote_data,
							rank_data: rank_data,
							today_rank_data: vote_data,
							qu_rank_data: a.vote_team_data,
							columnsurs: a.columnsurs,
							columnsurs_selected: 'card1',
							bills: a.bills,
							format: a.format,
							format_isshow: a.format.isshow,
							bao_group: bao_group,
							enroll_fields: enroll_fields,
							count_rank: a.count_rank,
							XxGroupRes: XxGroupRes,
							is_xxfen_des: a.is_xxfen_des,
							color_status: a.live.color_status,
							color_one: a.live.color_one,
							color_two: a.live.color_two,
							color_three: a.live.color_three,
							vote_old: a.vote,
							payment_paypal_id: a.live.payment_paypal_id,


						});
						console.log(a)
						console.log(window.location.host)

						console.log(that, 'that')
						//H5直播加载播放
						//H5直播加载结束
						// 格式化公告中详情的h5
						var format = a.format;
						//i.wxParse('format_content', 'html', format.content, that, 5)
						that.article_format_content = that.escape2Html(format.content);
						//启动选手投票倒计时
						if (a.live.tou_djs_status == 1) {
							that.save_time();
						}
						//启动直播开始倒计时
						if (a.live.start_at > new Date().getTime() / 1000 + 1) {
							that.save_live_time();
						} else {
							that.setData({
								live_downtime_status: 0
							});
						}
						// 格式化nav中详情的h5
						var nav = a.nav;
						//console.log(nav);
						for (let index = 0; index < nav.length; index++) {
							// i.wxParse('intro' + index, 'html', nav[index]['intro'], that)
							//that['intro' + index] = that.escape2Html(nav[index]['intro'].replace("\/ii\/\?",getApp().globalData.siteInfo.sitepath+"ii/?"));
							that['intro' + index] = that.escape2Html(nav[index]['intro']);
							that.WxParseListArr.push(that['intro' + index]);
							//if (index === nav.length - 1) {
							//   i.wxParseTemArray('WxParseListArr', 'intro', nav.length, that);
							// }
						}
						console.log(that.WxParseListArr)
						//格式化报名页 des的详情
						if (nav[0]['type'] == '7') {
							for (let index2 = 0; index2 < nav[0]['setting'].length; index2++) {
								const efrow = nav[0]['setting'][index2];
								if (efrow['name'] == 'region') {
									if (efrow['placeholder'] && efrow['show'] == 1) {
										that.setData({
											apply_param_region: efrow['placeholder'].split(',')
										});
									}
								} else if (nav[0]['setting'][index2]['name'] == 'des') {
									//i.wxParse('enroll_content', 'html', nav[0]['setting'][index2]['placeholder'], that, 5)
									that.article_enroll_content = that.escape2Html(nav[0]['setting'][
										index2
									]['placeholder']);
								} else if (nav[0]['setting'][index2]['name'] == 'agreement') {
									//i.wxParse('agreement_content', 'html', nav[0]['setting'][index2]['placeholder'], that, 5)
									that.article_agreement_content = that.escape2Html(nav[0]['setting'][
										index2
									]['placeholder']);
								}
							}
						}
						//格式化选手页面规则详情
						//i.wxParse('intro_content', 'html', a.columnsurs.intro_content, that, 5)
						that.article_intro_content = that.escape2Html(a.columnsurs.intro_content);

						//this.title=a.live.title;
						//开屏
						if (a.live.kp_status == 1) {
							that.setData({
								kp_time: a.live.kp_img_time
							});
							that.kp_strat();
						} else {
							//滚动广告
							that.setData({
								kp_time: 0
							});
							that.initAnimation();
						}

						//背景音乐
						that.bg_mp3();

						if (uni.getStorageSync('lastTab') && that.getUrlCode().action == 'back') {
							that.setData({
								kp_time: 0
							});
							that.bindtab(uni.getStorageSync('lastTab'));
							// that.setData({
							//     vote_show_flag: true,
							//     vote_gift_open: 1,
							//     xuan_name: decodeURI(that.getUrlCode().xuan_name),
							//     xuan_id: that.getUrlCode().xuan_id,
							//     vote_index: that.getUrlCode().vote_index,
							// });
						}

						var urlParams = new URLSearchParams(window.location.search);
						var xuan_id = urlParams.get("xuan_id")
						var token = urlParams.get("token")

						console.log(a)
						if (xuan_id.length > 0) {
							app.globalData.util.request({
								url: 'lives_new&r=vote_info',
								data: {
									xuan_id: xuan_id,
									token: token,
									uid: uni.getStorageSync('uid')
								},
								cachetime: '0',
								showLoading: 0,
								success: function(res) {
									let d = res.data.data.vote_info
									d.hide_data_before2 = res.data.data.vote.hide_data_before
									d.vote_downtime_status2 = res.data.data.vote
										.vote_downtime_status
									that.vote_info(xuan_id, token, d)
									that.tabtype = "vote"
									for (const item of a.nav) {
										if (item.typename == 'vote') {
											that.tab = item.id
											return
										}
									}
								}
							});

						}
					}
				});
			},
			
			//获取主要数据
					get_live2: function() {
						var that = this;
									var is_black = this.is_black;
									if (uni.getStorageSync('userInfo')) {
										that.setData({
											socketClientName: uni.getStorageSync('userInfo').nickName
										});
									}
									if (typeof is_black == 'undefined' && this.from != 'timeline') {
										setTimeout(() => {
											that.get_live();
										}, 200);
										return;
									} else if (is_black == 1) {
										return;
									}
									if (!that.token) {
										var token = uni.getStorageSync('token');
										that.setData({
											token: token
										});
									} else {
										uni.setStorage({
											key: 'token',
											data: that.token
										});
										uni.setStorage({
											key: 'page',
											data: 'index'
										});
									}
									
									app.globalData.util.request({
										url: 'lives_new',
										data: {
											token: that.token,
											uid: uni.getStorageSync('uid'),
											wxopenid: uni.getStorageSync('wxopenid'),
											uniacid: uni.getStorageSync('uniacid'),
											// xuan_id: e.data._xuan_id,
											// tab: e.data._tab
										},
										cachetime: '0',
										showLoading: true,
										success: function(t) {
											var a = t.data.data;
											uni.setNavigationBarTitle({
												title: a.live.title
											})
										
											if (a.nav[0]) {
												var tabtype = a.nav[0]['typename'];
											} else {
												var tabtype = '';
											}
											if (a.live.bao_group) {
												var bao_group = JSON.parse(a.live.bao_group);
											} else {
												var bao_group = '';
											}
											//第一个tab如果是报名
											if (a.nav[0]['typename'] == 'enroll') {
												var enroll_fields = a.nav[0]['setting'];
												//var multiArrayTemp = a.nav[0]['setting'][35]['temp'] ,multiArray = a.nav[0]['setting'][35]['datas'];
											} else {
												var enroll_fields = '';
											}
											//第一个tab如果是 查线下分
											if (a.nav[0]['typename'] == 'xx_fen') {
												var XxGroupRes = a.nav[0]['XxGroupRes'];
											} else {
												var XxGroupRes = '';
											}
											that.offlineParameters = []
											a.nav.forEach(item => {
												if (item.typename == 'xx_fen' && item.config) {
													let config = JSON.parse(item.config)
													Object.keys(config).forEach(key => {
														if (config[key].is_show == 1) {
															that.offlineParameters.push(config[key])
															// Object.assign(data,...config[key])
														}
													})
													that.offlineParameters.forEach(item2 => {
														item2.value = ''
														Object.keys(item2).forEach(key => {
															if (key == 'search_field') {
																item2[item2['search_field']] = ''
															}
														})
													})
												}
											})
											//第一个tab如果是 投票
											var vote = (vote_data = rank_data = []);
											if (a.nav[0]['typename'] == 'vote') {
												var vote = a.vote && a.vote[a.firstid] ? a.vote[a.firstid] : '';
												var vote_data = a.vote_data && a.vote_data[a.firstid] ? a.vote_data[a
													.firstid] : '';
												var rank_data = vote_data;
											}
											if (a.nav[0]['typename'] == 'online_license') {
												that.setData({
													onlineLicenseGroups: a.nav[0]['OnlineLicenseGroups']
												});
											}
											that.parameters = []
											a.nav.forEach(item => {
												if (item.typename == 'online_license' && item.config) {
													let config = JSON.parse(item.config)
													Object.keys(config).forEach(key => {
														if (config[key].is_show == 1) {
															that.parameters.push(config[key])
															// Object.assign(data,...config[key])
														}
													})
													that.parameters.forEach(item2 => {
														item2.value = ''
														Object.keys(item2).forEach(key => {
															if (key == 'search_field') {
																item2[item2['search_field']] = ''
															}
														})
													})
												}
											})
											console.log(that.parameters, 'that.parameters');
											if (a.nav[0]['typename'] == 'chat') {
												that.openChat();
											}
											//判断是否自定义颜色
											if (a.live.color_status !== '0') {
												a.themes = 'zdy';
											} else {
												a.live.color_one = '';
												a.live.color_two = '';
												a.live.color_three = '';
											}
											that.setData({
												live: a.live,
												wxapp_id: a.live.wxapp_id,
												themes: 'themes_' + a.themes,
												live_id: a.live.id,
												rid: a.live.rid,
												tab: a.firstid,
												tabtype: tabtype,
												streamType: a.stream.type,
												stream: a.stream.stream,
												nav: a.nav,
												is_vote_tab: a.live.is_vote_tab,
												is_vote_num: a.live.is_vote_num,
												vote_all: a.vote,
												vote_data_all: a.vote_data,
												rank_data_all: a.vote_data,
												vote: vote,
												vote_data: vote_data,
												rank_data: rank_data,
												qu_rank_data: a.vote_team_data,
												columnsurs: a.columnsurs,
												columnsurs_selected: 'card1',
												bills: a.bills,
												format: a.format,
												format_isshow: a.format.isshow,
												bao_group: bao_group,
												enroll_fields: enroll_fields,
												count_rank: a.count_rank,
												XxGroupRes: XxGroupRes,
												is_xxfen_des: a.is_xxfen_des,
												color_status: a.live.color_status,
												color_one: a.live.color_one,
												color_two: a.live.color_two,
												color_three: a.live.color_three,
												vote_old: a.vote,
												payment_paypal_id: a.live.payment_paypal_id,
						
						
											});
											console.log(a)
											console.log(window.location.host)
						
											console.log(that, 'that')
											//H5直播加载播放
											//H5直播加载结束
											// 格式化公告中详情的h5
											var format = a.format;
											//i.wxParse('format_content', 'html', format.content, that, 5)
											that.article_format_content = that.escape2Html(format.content);
											//启动选手投票倒计时
											if (a.live.tou_djs_status == 1) {
												that.save_time();
											}
											//启动直播开始倒计时
											if (a.live.start_at > new Date().getTime() / 1000 + 1) {
												that.save_live_time();
											} else {
												that.setData({
													live_downtime_status: 0
												});
											}
											// 格式化nav中详情的h5
											var nav = a.nav;
											//console.log(nav);
											for (let index = 0; index < nav.length; index++) {
												// i.wxParse('intro' + index, 'html', nav[index]['intro'], that)
												//that['intro' + index] = that.escape2Html(nav[index]['intro'].replace("\/ii\/\?",getApp().globalData.siteInfo.sitepath+"ii/?"));
												that['intro' + index] = that.escape2Html(nav[index]['intro']);
												that.WxParseListArr.push(that['intro' + index]);
												//if (index === nav.length - 1) {
												//   i.wxParseTemArray('WxParseListArr', 'intro', nav.length, that);
												// }
											}
											console.log(that.WxParseListArr)
											//格式化报名页 des的详情
											if (nav[0]['type'] == '7') {
												for (let index2 = 0; index2 < nav[0]['setting'].length; index2++) {
													const efrow = nav[0]['setting'][index2];
													if (efrow['name'] == 'region') {
														if (efrow['placeholder'] && efrow['show'] == 1) {
															that.setData({
																apply_param_region: efrow['placeholder'].split(',')
															});
														}
													} else if (nav[0]['setting'][index2]['name'] == 'des') {
														//i.wxParse('enroll_content', 'html', nav[0]['setting'][index2]['placeholder'], that, 5)
														that.article_enroll_content = that.escape2Html(nav[0]['setting'][
															index2
														]['placeholder']);
													} else if (nav[0]['setting'][index2]['name'] == 'agreement') {
														//i.wxParse('agreement_content', 'html', nav[0]['setting'][index2]['placeholder'], that, 5)
														that.article_agreement_content = that.escape2Html(nav[0]['setting'][
															index2
														]['placeholder']);
													}
												}
											}
											//格式化选手页面规则详情
											//i.wxParse('intro_content', 'html', a.columnsurs.intro_content, that, 5)
											that.article_intro_content = that.escape2Html(a.columnsurs.intro_content);
						
											//this.title=a.live.title;
											//开屏
											if (a.live.kp_status == 1) {
												that.setData({
													kp_time: a.live.kp_img_time
												});
												that.kp_strat();
											} else {
												//滚动广告
												that.setData({
													kp_time: 0
												});
												that.initAnimation();
											}
						
											//背景音乐
											that.bg_mp3();
						
											if (uni.getStorageSync('lastTab') && that.getUrlCode().action == 'back') {
												that.setData({
													kp_time: 0
												});
												that.bindtab(uni.getStorageSync('lastTab'));
												// that.setData({
												//     vote_show_flag: true,
												//     vote_gift_open: 1,
												//     xuan_name: decodeURI(that.getUrlCode().xuan_name),
												//     xuan_id: that.getUrlCode().xuan_id,
												//     vote_index: that.getUrlCode().vote_index,
												// });
											}
						
											var urlParams = new URLSearchParams(window.location.search);
											var xuan_id = urlParams.get("xuan_id")
											var token = urlParams.get("token")
						
											console.log(a)
											if (xuan_id.length > 0) {
												app.globalData.util.request({
													url: 'lives_new&r=vote_info',
													data: {
														xuan_id: xuan_id,
														token: token,
														uid: uni.getStorageSync('uid')
													},
													cachetime: '0',
													showLoading: 0,
													success: function(res) {
														let d = res.data.data.vote_info
														d.hide_data_before2 = res.data.data.vote.hide_data_before
														d.vote_downtime_status2 = res.data.data.vote
															.vote_downtime_status
														that.vote_info(xuan_id, token, d)
														that.tabtype = "vote"
														for (const item of a.nav) {
															if (item.typename == 'vote') {
																that.tab = item.id
																return
															}
														}
													}
												});
						
											}
										}
									});
								},
			

			bg_mp3() {
				if (this.live.live_mp3_status == 1) {
					// 获取BackgroundAudioManager 实例
					//this.back = uni.getBackgroundAudioManager();
					this.back = uni.createInnerAudioContext();
					this.back.autoplay = true;
					this.back.loop = true
					// 对实例进行设置
					//console.log(this.live.live_mp3);
					this.back.src = this.live.live_mp3;
					this.back.title = '背景音乐'; // 标题为必选项
					this.back.play();
				}
			},

			// 点击暂停操作
			stop() {
				this.back.pause(); // 点击音乐图标后出发的操作
				this.setData({
					on: !this.on
				});
				if (this.on) {
					this.back.play();
				} else {
					this.back.pause();
				}
			},

			tonewhref(t) {
				// console.log(11111)
				var e = t.currentTarget.dataset;
				let host = window.location.host;
				let new_href =
					`http://${host}/app/wxapp.php?m=wxz_wzbagent&do=paypal&c=entry&a=wxapp&op=paypal_detail&token=${this.token}&gift_id=${this.vote_gift_id}&gift_num=${this.vote_gift_num}&vote_id=${e.xuan_id}&vote_name=${e.xuan_name}`
				window.location.href = new_href;
				console.log('跳转燕盟新地址', new_href)
			},
			/*验证当前小程序状态 */
			check_appId: function() {
				var that = this;
				/* 判断当前小程序是否正常 */
				var accountInfo = uni.getAccountInfoSync();
				var appId = accountInfo.miniProgram.appId;
				app.globalData.util.request({
					url: 'lives_new&r=get_appid',
					data: {
						rid: that.rid,
						live_id: that.live_id
					},
					cachetime: '0',
					showLoading: true,
					success: function(t) {
						var appid = t.data.data.appid;
						if (appId !== appid) {
							/* 跳转到最新的小程序 */
							uni.navigateToMiniProgram({
								appId: appid,
								path: '/wxz_wzbagent/pages/movie/movie' + '?token=' + that.token,
								success(res) {
									// 打开成功
								}
							});
						}
					}
				});
			},

			// 开屏开始
			kp_strat: function() {
				var that = this;
				var kp_timer = setInterval(function() {
					var kp_time = that.kp_time;
					kp_time--;
					//倒计时结束
					if (kp_time < 1) {
						clearInterval(kp_timer);
						that.setData({
							kp_time: 0
						});
						//滚动广告
						that.initAnimation();
					} else {
						that.setData({
							kp_time: kp_time
						});
					}
				}, 1000);
			},

			// 跳过开屏
			tiaoguo: function() {
				var that = this;
				that.setData({
					kp_time: 0
				});
				//滚动广告
				that.initAnimation();
			},

			destroyTimer() {
				if (this.timer) {
					clearTimeout(this.timer);
				}
			},

			//滚动广告，开启公告字幕滚动动画
			initAnimation() {
				if (this.live.rollcontent) {
					let that = this;
					this.duration = 15000;
					this.animation = uni.createAnimation({
						duration: this.duration,
						timingFunction: 'linear'
					});
					let query = uni.createSelectorQuery();
					query.select('.content-box').boundingClientRect();
					query.select('#text').boundingClientRect();
					query.exec((rect) => {
						//console.log(rect)
						if (rect[0] && rect[1]) {
							that.setData({
									wrapWidth: rect[0].width,
									textWidth: rect[1].width
								},
								() => {
									this.startAnimation();
								}
							);
						} else {
							that.setData({
									wrapWidth: "",
									textWidth: ""
								},
								() => {
									this.startAnimation();
								}
							);
						}
					});
				}
			},

			// 滚动广告，定时器动画
			startAnimation() {
				//reset
				// this.data.animation.option.transition.duration = 0
				const resetAnimation = this.animation.translateX(this.wrapWidth).step({
					duration: 0
				});
				this.setData({
					animationData: resetAnimation.export()
				});
				// this.data.animation.option.transition.duration = this.data.duration
				const animationData = this.animation.translateX(-this.textWidth).step({
					duration: this.duration
				});
				setTimeout(() => {
					this.setData({
						animationData: animationData.export()
					});
				}, 100);
				const timer = setTimeout(() => {
					this.startAnimation();
				}, this.duration);
				this.setData({
					timer
				});
			},

			//关闭公告
			close_notice: function() {
				var that = this;
				that.setData({
					format_isshow: 0
				});
			},

			//下拉列表
			// 下拉框strat
			openClose: function() {
				var that = this;
				if (that.isShow) {
					that.setData({
						isShow: 0
					});
				} else {
					that.setData({
						isShow: 1
					});
				}
			},

			optionTap: function(e) {
				var that = this;
				// if(that.data.live.bao_group_type == '1'){
				var apply_param_bao_group = e.currentTarget.dataset.name;
				that.setData({
					apply_param_bao_group: apply_param_bao_group,
					isShow: 0
				});
			},

			// 下拉框end
			/*线下成绩查询下拉框 */
			openCloseXxGroups: function() {
				var that = this;
				if (that.isShowXxGroups) {
					that.setData({
						isShowXxGroups: 0
					});
				} else {
					that.setData({
						isShowXxGroups: 1
					});
				}
			},

			optionTapXxGroups: function(e) {
				var that = this;
				var XxGroups = e.currentTarget.dataset.name;
				that.setData({
					XxGroups: XxGroups,
					isShowXxGroups: 0
				});
			},

			openCloseGroups: function() {
				var that = this;
				if (that.isShowGroups) {
					that.setData({
						isShowGroups: 0
					});
				} else {
					that.setData({
						isShowGroups: 1
					});
				}
			},

			optionTapGroups: function(e) {
				var that = this;
				var apply_param_groups = e.currentTarget.dataset.name;
				that.setData({
					apply_param_groups: apply_param_groups,
					isShowGroups: 0
				});
			},

			// 顶部bar图高度
			imgHeight: function(e) {
				var winWid = uni.getSystemInfoSync().windowWidth; //获取当前屏幕的宽度
				//var imgh = e.detail.height; //图片高度
				var imgw = e.detail.width; //图片宽度
				//var swiperH = (winWid * imgh) / imgw + 'px'; //等比设置swiper的高度。 即 屏幕宽度 / swiper高度 = 图片宽度 / 图片高度  ==》swiper高度 = 屏幕宽度 * 图片高度 / 图片宽度
				var swiperH = winWid / 1.66 + 'px';
				this.setData({
					Height: swiperH //设置高度
				});
			},

			//直播开始倒计时
			save_live_time: function() {
				var live_timer = null;
				var that = this;
				var time = that.live.start_at;
				if (time > new Date().getTime() / 1000) {
					live_timer = setInterval(function() {
						var leftTime = time - new Date().getTime() / 1000;
						//倒计时结束
						if (leftTime <= 1) {
							clearInterval(live_timer);
							that.setData({
								live_downtime_status: 0
							});
							that.get_live();
						}
						var Day = Math.floor(leftTime / (60 * 60 * 24)); //天数
						var Hour = Math.floor((leftTime - Day * 24 * 60 * 60) / 3600); //小时
						var Minute = Math.floor((leftTime - Day * 24 * 60 * 60 - Hour * 3600) / 60); //分钟
						var Second = Math.floor(leftTime - Day * 24 * 60 * 60 - Hour * 3600 - Minute *
							60); //秒数
						if (Minute >= 0 && Second >= 0) {
							let live_downtime = {
								day: Day,
								hour: Hour < 10 ? '0' + Hour : Hour,
								minute: Minute < 10 ? '0' + Minute : Minute,
								second: Second < 10 ? '0' + Second : Second
							};
							that.setData({
								live_downtime: live_downtime
							});
						}
					}, 1000);
				}
			},

			//播放宣传片 隐藏直播开始倒计时
			playVideo: function() {
				var that = this;
				that.setData({
					live_downtime_status: 0
				});
			},

			//暂停播放宣传片 显示直播开始倒计时
			pauseVideo: function() {
				var that = this;
				that.setData({
					live_downtime_status: 1
				});
			},

			//宣传片播放完毕 显示直播开始倒计时
			endedVideo: function() {
				var that = this;
				that.setData({
					live_downtime_status: 1
				});
			},

			//投票倒计时
			save_time: function() {
				var timer = null;
				var that = this;
				var vote = that.vote;
				var time = 0;
				var tab = that.tab;
				if (vote.vote_downtime_status == 1) {
					//未开始
					var time = vote.start_at;
				}
				if (vote.vote_downtime_status == 2) {
					//已开始
					var time = vote.end_at;
				}
				if (vote.vote_downtime_status == 1 || vote.vote_downtime_status == 2) {
					timer = setInterval(function() {
						var leftTime = time - new Date().getTime() / 1000;
						// console.log(leftTime)
						//倒计时结束
						if (leftTime <= 1) {
							clearInterval(timer);
							that.get_live();
						}
						//切换tab后停止当前倒计时并清空
						if (tab != that.tab) {
							clearInterval(timer);
							that.setData({
								vote_downtime: {}
							});
							return;
						}
						// var leftSecond = parseInt(leftTime / 1000);
						var Day = Math.floor(leftTime / (60 * 60 * 24)); //天数
						var Hour = Math.floor((leftTime - Day * 24 * 60 * 60) / 3600); //小时
						var Minute = Math.floor((leftTime - Day * 24 * 60 * 60 - Hour * 3600) / 60); //分钟
						var Second = Math.floor(leftTime - Day * 24 * 60 * 60 - Hour * 3600 - Minute *
							60); //秒数
						if (Minute >= 0 && Second >= 0) {
							let vote_downtime = {
								day: Day,
								hour: Hour < 10 ? '0' + Hour : Hour,
								minute: Minute < 10 ? '0' + Minute : Minute,
								second: Second < 10 ? '0' + Second : Second
							};
							that.setData({
								vote_downtime: vote_downtime
							});
						}
					}, 1000);
				}
			},

			//直播
			livestatechange(e) {
				if (e.detail.code == 3005 || e.detail.code == 2103 || e.detail.code == -2301) {
					this.setData({
						liveNetworkStatus: -1
					});
					//wx.createLivePlayerContext('live-player').pause();
				} else if (e.detail.code != 2001) {
					this.setData({
						liveNetworkStatus: 1
					});
				}
				console.log('live-player code:', e.detail);
			},

			liveerror(e) {
				console.error('live-player error:', e.detail.errMsg);
			},

			vote_info(xuan_id, token, item) {
				this.info_flag = false
				this.info_xuan_id = xuan_id,
				this.info_token = token
				item.vote_downtime_status = this.vote.vote_downtime_status
				item.hide_data_before = this.vote.hide_data_before
				this.info_xuan = item
				var currentUrl = window.location.href;
				let urlA = location.href.indexOf('xuan_id')
				console.log(this.live)
				if (urlA != "-1") {
					var truncatedStr = currentUrl.slice(0, urlA - 1);
					var newUrl = truncatedStr + "&xuan_id=" + xuan_id;
					window.history.pushState(null, "", newUrl);
				} else {
					var newUrl = currentUrl + "&xuan_id=" + xuan_id;
					window.history.pushState(null, "", newUrl);
				}
			},

			//显示全屏按钮
			showFull() {
				this.setData({
					showControls: true
				});
			},

			//隐藏全屏按钮
			hideFull() {
				this.setData({
					showControls: false
				});
			},

			//全屏操作
			onFullScreen() {
				let that = this;
				this.LivePlayerContext = uni.createLivePlayerContext('live-player');
				this.LivePlayerContext.requestFullScreen({
					direction: 90,
					success(e) {
						that.setData({
							fullScreenFlag: true
						});
					},
					fail(e) {
						console.log(e);
					},
					complete(e) {
						console.log(e);
					}
				});
			},

			//退出全屏
			unFullScreen() {
				let that = this;
				this.LivePlayerContext = uni.createLivePlayerContext('live-player');
				this.LivePlayerContext.exitFullScreen({
					success(e) {
						that.setData({
							fullScreenFlag: false
						});
					}
				});
			},

			openChat: function() {
				uni.closeSocket();
				var that = this;
				var socketClientName = that.socketClientName ? that.socketClientName : '游客';
				var socketOpen = true;
				var that = this;
				var roomId = that.live_id;
				uni.connectSocket({
					url: 'wss://tovgb.top/wss',
					header: {
						'content-type': 'application/json'
					}
					//protocols: ['protocol1']
				});

				uni.onSocketError(function(res) {
					socketOpen = false;
					that.setData({
						socketError: 1
					});
					console.log('WebSocket连接打开失败，请检查！', res);
				});
				uni.onSocketMessage(function(res) {
					that.setData({
						socketError: 0
					});
					//console.log('收到服务器内容：' + res.data)
					res.data = JSON.parse(res.data);
					if (res.data.type == 'login') {
						that.setData({
							socketClientId: res.data.client_id
						});
					} else if (res.data.type == 'ping') {
						sendSocketMessage('{"type":"pong"}');
					} else if (res.data.type == 'say') {
						var chatMsgArr = that.chatMsgArr;
						chatMsgArr.push({
							name: res.data.from_client_name,
							content: res.data.content,
							time: res.data.time,
							client_id: res.data.from_client_id
						});
						that.setData({
							chatMsgArr: chatMsgArr
						});
					}
				});
				var socketMsgQueue = that.socketMsgQueue;
				uni.onSocketOpen(function(res) {
					socketOpen = true;
					sendSocketMessage('{"type":"login","client_name":"' + socketClientName + '","room_id":' +
						that.live.id + '}');
					for (let i = 0; i < socketMsgQueue.length; i++) {
						sendSocketMessage(socketMsgQueue[i]);
					}
					that.setData({
						socketError: 0,
						socketMsgQueue: []
					});
				});

				function sendSocketMessage(msg) {
					//{"type":"pong"}
					//{"type":"say","to_client_id":"all","to_client_name":"所有人","content":"111"}
					//{"type":"login","client_name":"游客","room_id":1}
					//console.log(socketOpen,msg);
					if (socketOpen) {
						uni.sendSocketMessage({
							data: msg,
							success(res) {},
							error(res) {
								socketMsgQueue.push(msg);
								that.setData({
									socketMsgQueue: socketMsgQueue
								});
							}
						});
					} else {
						socketMsgQueue.push(msg);
						that.setData({
							socketMsgQueue: socketMsgQueue
						});
					}
				}
			},

			closeChat: function() {
				uni.closeSocket();
				return;
				uni.onSocketOpen(function(res) {
					console.log('离开');
					this.setData({
						socketMsgQueue: []
					});
					uni.closeSocket();
				});
			},

			inputChatMessage: function(e) {
				this.setData({
					chatMessage: e.detail.value
				});
			},

			sendChatMessage: function() {
				var that = this;
				var chatMessage = that.chatMessage;
				var socketMsgQueue = that.socketMsgQueue;
				if (!chatMessage) {
					return;
				}
				var msg = '{"type":"say","to_client_id":"all","to_client_name":"所有人","content":"' + chatMessage + '"}';
				uni.sendSocketMessage({
					data: msg,
					success(res) {
						setTimeout(() => {
							that.setData({
								chatMessage: ''
							});
						}, 100);
					},
					error(res) {
						socketMsgQueue.push(msg);
						that.setData({
							socketMsgQueue: socketMsgQueue
						});
					}
				});
			},

			openChatCheck: function() {
				// var that = this;
				// if (!that.socketClientName) {
				//     uni.getUserProfile({
				//         desc: '参与互动',
				//         success: (res) => {
				//             that.setData({
				//                 socketClientName: res.userInfo.nickName
				//             });
				//             uni.setStorageSync('userInfo', res.userInfo);
				//             that.openChat();
				//         },
				//         fail: (res) => {
				//             console.log(res);
				//             uni.showToast({
				//                 title: '登录失败,请点击授权',
				//                 icon: 'none',
				//                 duration: 2000
				//             });
				//         }
				//     });
				// } else {
				//     that.openChat();
				// }
			},

			showShareWindowFun: function() {
				// uni.setNavigationBarTitle({
				// 	title: '456456'
				// })
				console.log(this.token)
				this.contentImage = 'http://' + window.location.host +
					'/app/wxapp.php?from=wxapp&m=wxz_wzbagent&do=wechat&r=' +
					(isWeiXin() ? 'shareImage' : 'shareImage') +
					'&c=entry&a=wxapp&token=' + this.token
				this.setData({
					visible: 1
				});
				console.log(this.contentImage)
			},

			// 主tab切换
			bindtab: function(t) {
				this.info_flag = true
			
				uni.setStorageSync('lastTab', t);
				var e = t.currentTarget.dataset.id;
				var h = t.currentTarget.dataset.type;
				var s = t.currentTarget.dataset.sort;
				if (h == 'chat') {
					//this.openChatCheck();
				} else {
					//this.closeChat();
				}
				console.log(t)
				console.log(t.currentTarget.dataset.navurl)
				if (h == 'photo_live') {
					window.location.href = t.currentTarget.dataset.navurl;
					// uni.navigateTo({
					//     url: '/wxz_wzbagent/pages/photo_live/webview?url=' + t.currentTarget.dataset.navurl
					// });
					return;
				}
				if (h == 'iframe') {
					this.setData({
						iframeurl: t.currentTarget.dataset.navurl,
					});
				}
				if (h == 'mini_program') {
					let navurl = t.currentTarget.dataset.navurl;
					navurl = navurl.split(':');
					uni.navigateToMiniProgram({
						appId: navurl[0],
						path: navurl[1],
						success(res) {}
					});
					return;
				}
				if (h == 'enroll') {
					var nav = this.nav;
					var enroll_fields = nav[s]['setting'];
					for (let index = 0; index < enroll_fields.length; index++) {
						const efrow = enroll_fields[index];
						if (efrow['name'] == 'region') {
							if (efrow['show'] == 0) {
								this.setData({
									apply_param_region: []
								});
							} else if (efrow['placeholder'] && efrow['show'] == 1) {
								this.setData({
									apply_param_region: efrow['placeholder'].split(',')
								});
							}
						} else if (efrow['name'] == 'des') {
							//i.wxParse('enroll_content', 'html', efrow['placeholder'], this, 5)
							this.article_enroll_content = this.escape2Html(efrow['placeholder']);
						} else if (efrow['name'] == 'agreement') {
							//i.wxParse('agreement_content', 'html', efrow['placeholder'], this, 5)
							this.article_agreement_content = this.escape2Html(efrow['placeholder']);
						}
					}
				} else {
					var enroll_fields = '';
				}
				if (h == 'xx_fen') {
					var nav = this.nav;
					var XxGroupRes = nav[s]['XxGroupRes'];
					this.setData({
						XxName: '',
						XxGroups: '',
						XxStatus: 0,
						XxData: {},
					});
				} else {
					var XxGroupRes = '';
				}

				if (h == 'online_license') {
					this.setData({
						onlineLicenseGroups: this.nav[s]['OnlineLicenseGroups']
					});
				}
				if (h == 'vz_photo_live') {
					this.setData({
						photoLivePage: 1
					});
					this.getPhotoLiveData(e, 1);
				}
				if (h == 'goods') {
					this.getMallData(this.live.goods_ids);
					this.setData({
						mallShow: 'goods_list'
					}); 
				}
				if (h == 'vote') {
					// this.get_live2()
					console.log(1111)
					let datas = {};
					if (this.vote_all && this.vote_all[e]) {
						datas['vote'] = this.vote_all[e];
					} else {
						datas['vote'] = '';
					}
					if (this.vote_data_all && this.vote_data_all[e]) {
						datas['vote_data'] = this.vote_data_all[e];
					} else {
						datas['vote_data'] = '';
					}
					datas['rank_data'] = datas['vote_data'];
					datas['today_rank_data'] = datas['vote_data'];
					datas['tab'] = e;
					datas['vote_downtime'] = {};
					datas['vote_load'] = true;
					datas['vote_page'] = 1;
					this.setData(datas);
					if (this.live.tou_djs_status == 1) {
						this.save_time();
					}
					// if(this.data.vote_data_all){
					//     this.setData({
					//         vote:this.data.vote_all[e],
					//         vote_data:this.data.vote_data_all[e],
					//         rank_data:this.data.rank_data_all[e],
					//     });
					// }
				}

				this.setData({
					tab: e,
					tabtype: h,
					tab_id: s,
					tab_name: t.currentTarget.dataset.name,
					enroll_fields: enroll_fields,
					XxGroupRes: XxGroupRes,
					columnsurs_selected: 'card1',
					apply_param_pay: 0,
					enroll_status: 0
				});
				var url = new URL(window.location.href);
				var params = new URLSearchParams(url.search);
				params.delete("xuan_id");
				var newUrl = url.origin + url.pathname + '?' + params.toString();
				history.replaceState(null, "", newUrl);
					console.log(this.tabtype)
			},

			// 选手tab切换
			bindvotetab: function(t) {
				var h = t.currentTarget.dataset.type;
				this.setData({
					columnsurs_selected: h
				});
			},

			//搜索选手
			votesearch: function(t) {
				var that = this;
				that.getvote('search');
			},

			//搜索框赋值
			searchFun: function(e) {
				this.setData({
					search: e.detail.value
				});
			},

			tsk() {
				var title = "活动还未开启"
				if (this.vote.vote_downtime_status != 1) {
					title = "活动已结束"
				}
				uni.showToast({
					title: title,
					icon: 'none',
					duration: 1500
				});
			},

			//打call
			bindopenvote: function(t) {

				var that = this;
				var url = t.currentTarget.dataset.url;
				var id = t.currentTarget.dataset.xuan_id;
				var index = t.currentTarget.dataset.index;
				console.log(index)
				that.setData({
					paimingindex: t.currentTarget.dataset.index
				});
				var xuan_name = t.currentTarget.dataset.xuan_name;
				var uid = wx.getStorageSync("uid");
				
				if (that.payment_paypal_id != 1 && that.phonewx && url && url != 'undefined') {
					//window.location.assign(url)
					//return
				}
				//判断当前小程序状态
				// if (that.live.close_pay_status == 0) {
				//     that.check_appId();
				// }
				//判断是否授权登录
				// var uid = uni.getStorageSync('uid');
				// if (that.live_id != 8505) {
				//     //if(!that.data.rk_uid || that.data.rk_uid == 'undefined' )
				//     that.setData({
				//         vote_show_flag: true,
				//         vote_gift_open: 1,
				//         xuan_name: xuan_name,
				//         xuan_id: id,
				//         vote_index: index
				//     });
				//     return;
				// }
				// setTimeout(() => {
				// 	console.log(this.uid)
				// }, 2000)
				// console.log(uid);
				app.globalData.util.request({
					url: isWeiXin() ? 'lives_new&r=poll' : 'ali&r=poll',
					data: {
						rid: that.rid,
						live_id: that.live_id,
						uniacid: that.live.uniacid,
						uid: uid,
						id: id,
						nav_id: that.tab
					},
					cachetime: '0',
					showLoading: true,
					success: function(t) {
						console.log(t);
						var json = t.data.data;
						console.log(json);
						if (json.s == 0) {
							//不能投
							uni.showToast({
								title: json.msg,
								icon: 'none',
								duration: 1500
							});
						}
						if (json.s == 8) {
							//免费票成功
							uni.showToast({
								title: json.msg,
								icon: 'none',
								duration: 1500
							});
							var zanshu = parseInt(that.vote_data[index].votes) + 1;
							var key = 'vote_data[' + index + '].votes';
							that.vote_data[index].votes = zanshu;
						}
						if (json.s == 1 || json.s == 2 || json.s == 3 || json.s == 4) {
							if (isWeiXin() && that.live.close_pay_status == 1) {
								uni.showModal({
									title: '提示',
									content: that.live.close_pay_tip
								});
								return false;
							}
							if (!isWeiXin() && that.live.close_pay_status_ali == 1) {
								uni.showModal({
									title: '提示',
									content: that.live.close_pay_tip
								});
								return false;
							}
							//弹出礼物框
							that.setData({
								vote_show_flag: true,
								vote_gift_open: 1,
								xuan_name: xuan_name,
								xuan_id: id,
								vote_index: index
							});
							uni.showToast({
								title: json.msg,
								icon: 'none',
								duration: 1500
							});
						}
					}
				});
			},

			//关闭投票弹窗
			bindclosevote: function() {
				this.setData({
					vote_show_flag: false,
					vote_flag: false
				});
			},

			//改变礼物数量
			bindgiftnum: function(t) {
				var e = t.currentTarget.dataset.type;
				var a = this.vote_gift_num;
				if (-1 == e) {
					a--;
				} else {
					a++;
				}
				if (a < 1) {
					a = 1;
				}
				this.setData({
					vote_gift_num: a
				});
			},

			//输入框改变礼物数量
			bindchangenum: function(t) {
				var e = t.detail.value;
				e = parseInt(e);
				this.setData({
					vote_gift_num: e
				});
			},

			//选中礼物
			bindchoosegift: function(t) {
				var e = t.currentTarget.dataset;
				this.setData({
					vote_gift_id: e.id,
					vote_gift_num: 1
				});
			},
			//提交打call
			bindbuy: function(t) {
				var that = this;
				var e = t.currentTarget.dataset;
				if (that.vote_gift_id) {
					if (that.vote_gift_num < 1) {
						uni.showToast({
							title: '礼物数量不能小于1件!',
							icon: 'none',
							duration: 1500
						});
					} else {
						//请求
						var gift_id = that.vote_gift_id;
						var gift_num = that.vote_gift_num;
						var uid = uni.getStorageSync('uid');
						var xuan_id = e.xuan_id;
						var voteName = e.xuan_name;
						var index = e.index;
						var checkUid = uni.getStorageSync('uid_' + that.live.uniacid);
						if (isWeiXin()) {
							/*
							if (that.live.current_pay == -1 || !checkUid) {
								if (that.live.token == 'dcc76daf232aee45') {
									var payIframeUrl =
										"http://www.pourfirst.cn/app/wxapp.php?i=9&v=2.3.0&from=wxapp&m=wxz_wzbagent&do=wechat&r=payLogin&token=" +
										that.live.token + "&c=entry&a=wxapp&gift_id=" + gift_id + "&gift_num=" +
										gift_num +
										"&xuan_id=" + xuan_id + "&uniacid=" + that.live.uniacid;
								} else
									var payIframeUrl =
										"http://www.pourfirst.cn/app/wxapp.php?i=9&v=2.3.0&from=wxapp&m=wxz_wzbagent&do=wechat&r=unifyPayIframe&token=" +
										that.live.token + "&c=entry&a=wxapp&uid=" + uid + "&gift_id=" + gift_id +
										"&gift_num=" + gift_num + "&xuan_id=" + xuan_id + "&voteName=" + voteName +
										"&uniacid=" + that.live.uniacid + "&wxopenid=" + uni.getStorageSync(
											'wxopenid') +
										"&vote_index=" + index;
								//console.log(payIframeUrl);
								window.location.href = payIframeUrl;
								// that.setData({
								// 	payIframeUrl: payIframeUrl,
								// 	showPayIframe: 1
								// });
								return;
							}
							*/

							//#ifdef H5
							if (isWeiXin()) {
								let wxopenid = uni.getStorageSync('wxopenid');
								let uniacid = uni.getStorageSync('uniacid');
								console.log(wxopenid)
								if (wxopenid) {
									console.log(9999999999);
									app.globalData.util.request({
										url: 'wechat&r=unifyPay',
										data: {
											uid: uid,
											gift_id: gift_id,
											gift_num: gift_num,
											xuan_id: xuan_id,
											voteName: voteName,
											uniacid:uniacid,
											wxapp_id: that.wxapp_id,
											wxopenid: wxopenid
										},
										cachetime: '0',
										showLoading: 0,
										success: function(t) {
											//H5微信浏览器支付
											console.log(t);
											if(t.data.data.refresh == 1){
												window.location.href=`/app/wxapp.php?m=wxz_wzbagent&do=wechat&c=entry&a=wxapp&token=${that.live.token}&xuan_id=${xuan_id}&r=h5login`;
											}
											//var appid = getApp().globalData.siteInfo.appid;
											var pay_params = t.data.data.pay_params;
											let self = this;
											jWeiXin.config({
												debug: false,
												appId: pay_params.appId,
												timestamp: pay_params.timeStamp.toString(),
												nonceStr: pay_params.nonceStr,
												signature: pay_params.paySign,
												jsApiList: ['chooseWXPay']
											});
											jWeiXin.ready(function() {
												jWeiXin.checkJsApi({
													jsApiList: ['chooseWXPay'],
													success: function(res) {
														console.log(
															'checkjsapi Success');
														console.log(res);
													},
													fail: function(res) {
														console.log('res');
														console.log(res);
													}
												});
												jWeiXin.chooseWXPay({
													timestamp: pay_params.timeStamp,
													nonceStr: pay_params.nonceStr,
													package: pay_params.package,
													signType: pay_params.signType,
													paySign: pay_params.paySign,
													success: function(res) {
														that.payGiftSuccess(t.data.data
															.logsid, t.data.data
															.out_trade_no, index);
														console.log(res);
													},
													cancel: function(res) {
														console.log(res)
													},
													fail: function(res) {
														console.log(t.data)
														uni.showToast({
															title: '支付失败!',
															icon: 'none',
															duration: 1500
														});
														console.log(res);
													}
												});
											});

											jWeiXin.error(function(res) {
												console.log(res);
											});
										}
									});
								} else if (!wxopenid) {
									location.reload();
								}
							}
							//#endif
							//#ifndef H5
							let wxopenid = uni.getStorageSync('wxopenid');
							let uniacid = uni.getStorageSync('uniacid');
							//uni.login({
							//	success: function(res) {
									// wxopenid uid uniacid
									app.globalData.util.request({
										url: 'lives_new&r=payGift',
										data: {
											uid: uid,
											gift_id: gift_id,
											gift_num: gift_num,
											xuan_id: xuan_id,
											voteName: voteName,
											uniacid:uniacid,
											wxapp_id: that.wxapp_id,
											code: res.code,
											wxopenid:wxopenid
										},
										cachetime: '0',
										showLoading: 0,
										success: function(t) {
											var pay_params = t.data.data.pay_params;
											uni.requestPayment({
												timeStamp: pay_params.timeStamp,
												nonceStr: pay_params.nonceStr,
												package: pay_params.package,
												signType: pay_params.signType,
												paySign: pay_params.paySign,
												success: function(res) {
													// wx.showToast({
													//     title: '支付成功!',
													//     icon: 'none',
													//     duration: 1500
													// })
													that.payGiftSuccess(t.data.data
														.logsid, t.data.data
														.out_trade_no, index);
												},
												fail: function(res) {
													uni.showToast({
														title: '支付失败!',
														icon: 'none',
														duration: 1500
													});
													// that.payGiftSuccess(t.data.data.logsid,t.data.data.out_trade_no,index);
												},

												complete: function(res) {}
											});
										}
									});
							//	}
							//});
							// #endif
						} else { //支付宝
							//that.tradePay()
							console.log(111111111)
							app.globalData.util.request({
								url: 'ali&r=payGift',
								data: {
									uid: uid,
									gift_id: gift_id,
									gift_num: gift_num,
									xuan_id: xuan_id,
									voteName: voteName,
									uniacid: that.live.uniacid_ali,
									wxapp_id: that.wxapp_id,
									//code: res.code
								},
								cachetime: '0',
								showLoading: 0,
								success: function(t) {
									// that.tradePay(t.data.data.pay_params.alipay_trade_create_response
									// 	.trade_no, 'gift')
									window.location.href = t.data.data.pay_params;

									// uni.showModal({
									// 	content:'交易号:'+t.data.data.pay_params.alipay_trade_create_response.trade_no,
									// 	success(res){
									// 		that.tradePay(t.data.data.pay_params.alipay_trade_create_response.trade_no)
									// 	}
									// })
									// const div = document.createElement('div');
									// div.innerHTML = t.data;
									// document.body.appendChild(div);
									// document.forms[0].submit();
								},
								fail: function(err) {
									uni.showToast({
										title: '支付失败！'
									})
								}
							});
						}
					}
				} else {
					uni.showToast({
						title: '请选择礼物!',
						icon: 'none',
						duration: 1500
					});
				}
			},
			//打call付费成功
			payGiftSuccess: function(logsid, out_trade_no, index) {
				var that = this;
				app.globalData.util.request({
					url: 'lives_new&r=payGiftSuccess',
					data: {
						logsid: logsid,
						wxapp_id: that.wxapp_id,
						out_trade_no: out_trade_no
					},
					cachetime: '0',
					showLoading: 0,
					success: function(t) {
						if (t.data.data.s == 1) {
							var zanshu = parseInt(that.vote_data[index].votes) + t.data.data.tickes;
							var key = 'vote_data[' + index + '].votes';
							that.vote_data[index].votes = zanshu;
							that.bindclosevote();
							uni.showToast({
								title: t.data.data.msg,
								icon: 'none',
								duration: 1500
							});
						}
						// else{
						//     wx.showToast({
						//         title: t.data.data.msg,
						//         icon: 'none',
						//         duration: 1500
						//     })
						// }
					}
				});
			},

			//获取选手
			getvote: function(type) {
				var that = this;
				if (type == 'search') {
					that.setData({
						vote_page: 1,
						columnsurs_selected: 'card1'
					});
				}
				var vote_data = that.vote_data;
				app.globalData.util.request({
					url: 'lives_new&r=get_vote',
					data: {
						rid: that.rid,
						live_id: that.live_id,
						search: that.search,
						vote_page: that.vote_page,
						nav_id: that.tab
					},
					cachetime: '0',
					showLoading: true,
					success: function(t) {
						var data = t.data.data.vote_data;
						if (type == 'search') {
							that.setData({
								vote_data: data,
								vote_load: true
							});
						}
						if (type == 'vote') {
							if (data.length !== 0) {
								that.setData({
									vote_data: vote_data.concat(data),
									vote_load: true
								});
							}
							if (data.length < 10) {
								//没值表示到底了
								that.setData({
									vote_load: false
								});
							}
						}
					}
				});
			},

			//获取排名
			getrank: function() {
				var that = this;
				var rank_data = that.rank_data;
				app.globalData.util.request({
					url: 'lives_new&r=get_vote',
					data: {
						rid: that.rid,
						live_id: that.live_id,
						vote_page: that.rank_page,
						nav_id: that.tab
					},
					cachetime: '3',
					showLoading: true,
					success: function(t) {
						var data = t.data.data.vote_data;
						if (data.length !== 0) {
							that.setData({
								rank_data: rank_data.concat(data),
								rank_load: true
							});
						}
						if (data.length < 10) {
							//没值表示到底了
							that.setData({
								rank_load: false
							});
						}
					}
				});
			},

			//报名方法
			applyUploadImg: function() {
				var that = this;
				var e = that.apply_param_images;
				var a = 5 - e.length;
				if (that.tab == 32321) {
					a = 3 - e.length;
				}
				if (a > 0) {
					uni.chooseImage({
						count: a,
						sizeType: ['compressed'],
						success: function(a) {
							for (var h = a.tempFilePaths, n = 0; n < a.tempFiles.length; n++) {
								if (a.tempFiles[n].size <= 6000000) {
									console.log(h[n]);
									uni.showLoading({title: '上传中',mask:true});
									uni.uploadFile({
										url: app.globalData.util.url('lives&r=upload_img'),
										filePath: h[n],
										name: 'file',
										header: {
											//'Content-Type': 'multipart/form-data'
										},
										showLoading: true,
										success: function(a) {
											var data = JSON.parse(a.data);
											if (data.data.s) {
												e.push(data.data.img_url);
												that.setData({
													apply_param_images: e
												});
													uni.hideLoading();
											} else {
												uni.showToast({
													title: data.data.msg,
													icon: 'none',
													duration: 1500
												});
											}
										},
										fail: function(t) {
											console.log(t);
										}
									});
								} else {
									uni.showToast({
										title: '上传图片不能大于5M!',
										icon: 'none',
										duration: 1500
									});
									// i.showError('上传图片不能大于5M!');
								}
							}
						}
					});
				}
			},

			//删除图片
			applyRemoveImg: function(t) {
				//console.log(111);
				for (var e = t.target.dataset.id, a = this.apply_param_images, o = [], i = 0; i < a.length; i++) {
					if (i != e) {
						o.push(a[i]);
					}
				}
				this.setData({
					apply_param_images: o
				});
				console.log(this.apply_param_images);
			},

			applyUploadImgOther: function() {
				var that = this;
				var e = that.apply_param_images_other;
				var a = 5 - e.length;
				if (a > 0) {
					uni.chooseImage({
						count: a,
						sizeType: ['compressed'],
						success: function(a) {
							for (var h = a.tempFilePaths, n = 0; n < a.tempFiles.length; n++) {
								if (a.tempFiles[n].size <= 6000000) {
									uni.showLoading({title: '上传中',mask:true});
									uni.uploadFile({
										url: app.globalData.util.url('lives&r=upload_img'),
										filePath: h[n],
										name: 'file',
										header: {
											//'Content-Type': 'multipart/form-data'
										},
										showLoading: true,
										success: function(a) {
											var data = JSON.parse(a.data);
											if (data.data.s) {
												e.push(data.data.img_url);
												that.setData({
													apply_param_images_other: e
												});
													uni.hideLoading();
											} else {
												uni.showToast({
													title: data.data.msg,
													icon: 'none',
													duration: 1500
												});
											}
										},
										fail: function(t) {
											console.log(t);
										}
									});
								} else {
									uni.showToast({
										title: '上传图片不能大于5M!',
										icon: 'none',
										duration: 1500
									});
								}
							}
						}
					});
				}
			},

			//删除图片
			applyRemoveImgOther: function(t) {
				for (var e = t.target.dataset.id, a = this.apply_param_images_other, o = [], i = 0; i < a
					.length; i++) {
					if (i != e) {
						o.push(a[i]);
					}
				}
				this.setData({
					apply_param_images_other: o
				});
			},

			applyUploadImgOther2: function() {
				var that = this;
				var e = that.apply_param_images_other2;
				var a = 5 - e.length;
				if (a > 0) {
					uni.chooseImage({
						count: a,
						sizeType: ['compressed'],
						success: function(a) {
							for (var h = a.tempFilePaths, n = 0; n < a.tempFiles.length; n++) {
								if (a.tempFiles[n].size <= 6000000) {
									uni.showLoading({title: '上传中',mask:true});
									uni.uploadFile({
										url: app.globalData.util.url('lives&r=upload_img'),
										filePath: h[n],
										name: 'file',
										header: {
											//'Content-Type': 'multipart/form-data'
										},
										showLoading: true,
										success: function(a) {
											var data = JSON.parse(a.data);
											if (data.data.s) {
												e.push(data.data.img_url);
												that.setData({
													apply_param_images_other2: e
												});
													uni.hideLoading();
											} else {
												uni.showToast({
													title: data.data.msg,
													icon: 'none',
													duration: 1500
												});
											}
										},
										fail: function(t) {
											console.log(t);
										}
									});
								} else {
									uni.showToast({
										title: '上传图片不能大于5M!',
										icon: 'none',
										duration: 1500
									});
								}
							}
						}
					});
				}
			},

			//删除图片
			applyRemoveImgOther2: function(t) {
				console.log(333)
				for (var e = t.target.dataset.id, a = this.apply_param_images_other2, o = [], i = 0; i < a
					.length; i++) {
					if (i != e) {
						o.push(a[i]);
					}
				}
				this.setData({
					apply_param_images_other2: o
				});
			},

			//上传视频
			applyUploadVideo: function(t) {
				var that = this;
				var mydate = new Date();
				uni.chooseVideo({
					sourceType: ['album', 'camera'],
					maxDuration: 60,
					camera: 'back',
					compressed: true,
					showLoading: true,
					success: function(a) {
						uni.showLoading({title: '上传中',mask:true});
						uploadImage(
							a,
							'direct/votes_video/' + mydate.getFullYear() + mydate.getMonth() + mydate
							.getDate() + '/',
							function(res) {
								that.setData({
									apply_param_video_url: res
								});
								uni.hideLoading();
							},
							function(res) {
								app.globalData.util.request({
									url: 'lives&r=errorLog',
									data: [{
										live_id: that.live_id,
										content: JSON.stringify(res)
									}],
									cachetime: '0',
									showLoading: true
								});
								console.log(res);
								uni.hideLoading();
								uni.showToast({
									title: '上传失败',
									icon: 'none',
									duration: 1500
								});
							}
						);
					}
				});
			},

			//删除视频
			applyRemoveVideo: function(t) {
				this.setData({
					apply_param_video_url: ''
				});
			},

			//上传视频
			applyUploadVideoOther: function(t) {
				var that = this;
				uni.chooseVideo({
					sourceType: ['album', 'camera'],
					maxDuration: 60,
					camera: 'back',
					compressed: true,
					success: function(a) {
						uni.showLoading({title: '上传中',mask:true});
						uni.uploadFile({
							url: app.globalData.util.url('lives&r=upload_video'),
							filePath: a.tempFilePath,
							name: 'file',
							header: {
								//'Content-Type': 'multipart/form-data'
							},
							showLoading: true,
							success: function(t) {
								var data = JSON.parse(t.data);
								console.log(data);
								if (data.data.s) {
									that.setData({
										apply_param_video_other_url: data.data
											.video_url
									});
										uni.hideLoading();
								} else {
									uni.showToast({
										title: data.data.msg,
										icon: 'none',
										duration: 1500
									});
								}
							},
							fail: function(t) {
								uni.showToast({
									title: '文件过大或上传超时',
									icon: 'none',
									duration: 1500
								});
								console.log(t);
							}
						});
					}
				});
			},

			//删除视频
			applyRemoveVideoOther: function(t) {
				this.setData({
					apply_param_video_other_url: ''
				});
			},

			//上传视频
			applyUploadVideoOther2: function(t) {
				var that = this;
				uni.chooseVideo({
					sourceType: ['album', 'camera'],
					maxDuration: 60,
					camera: 'back',
					success: function(a) {
						uni.showLoading({title: '上传中',mask:true});
						uni.uploadFile({
							url: app.globalData.util.url('lives&r=upload_video'),
							filePath: a.tempFilePath,
							name: 'file',
							header: {
								//'Content-Type': 'multipart/form-data'
							},
							showLoading: true,
							success: function(t) {
								var data = JSON.parse(t.data);
								console.log(data);
								if (data.data.s) {
									that.setData({
										apply_param_video_other2_url: data.data
											.video_url
									});
										uni.hideLoading();
								} else {
									uni.showToast({
										title: data.data.msg,
										icon: 'none',
										duration: 1500
									});
								}
							},
							fail: function(t) {
								console.log(t);
							}
						});
					}
				});
			},

			//删除视频
			applyRemoveVideoOther2: function(t) {
				this.setData({
					apply_param_video_other2_url: ''
				});
			},

			//上传音频
			applyUploadMusic: function(t) {
				var that = this;
				uni.chooseFile({ //chooseMessageFile
					count: 1,
					type: 'file',
					success(a) {
						uni.showLoading({title: '上传中',mask:true});
						console.log(a.tempFiles[0].path);
						uni.uploadFile({
							url: app.globalData.util.url('lives&r=upload_video'),
							filePath: a.tempFiles[0].path,
							name: 'file',
							header: {
								//'Content-Type': 'multipart/form-data'
							},
							showLoading: true,
							success: function(t) {
								var data = JSON.parse(t.data);
								if (data.data.s) {
									that.setData({
										apply_param_music_url: data.data.video_url
									});
									uni.hideLoading();
								} else {
									uni.showToast({
										title: data.data.msg,
										icon: 'none',
										duration: 1500
									});
								}
							},
							fail: function(t) {
								console.log(t);
							}
						});
					}
				});

				// wx.chooseVideo({
				//     sourceType: [ "album", "camera" ],
				//     maxDuration: 60,
				//     camera: "back",
				//     success: function(a) {
				//         wx.uploadFile({
				//             url: s.util.url("lives&r=upload_video"),
				//             filePath: a.tempFilePath,
				//             name: "file",
				//             header: {
				//                 "Content-Type": "multipart/form-data"
				//             },
				//             success: function(t) {
				//                 var data = JSON.parse(t.data);
				//                 if(data.data.s){
				//                     e.setData({
				//                         apply_param_music_url: data.data.video_url
				//                     });
				//                 }else{
				//                     wx.showToast({
				//                         title: data.data.msg,
				//                         icon: 'none',
				//                         duration: 1500
				//                     })
				//                 }
				//             },
				//             fail: function(t) {
				//                 console.log(t);
				//             }
				//         });
				//     }
				// });
			},

			//删除音频
			applyRemoveMusic: function(t) {
				this.setData({
					apply_param_music_url: ''
				});
			},

			//报名input框
			bindApplyInput: function(t) {
				var that = this;
				var a = t.detail.value; //a是值
				var o = t.target.dataset; //o.name是tel
				//console.log(a);//11111
				//console.log(o);//o.name='tel''
				var name = 'apply_param_' + o.name;
				//that.apply_param_o.name = a;
				that.setData({
					[name]: a
				});
			},

			//线下分数input框
			bindXxNameInput: function(t) {
				var that = this;
				var a = t.detail.value;
				that.setData({
					XxName: a
				});
			},

			bindXxMobileInput: function(t) {
				var that = this;
				var a = t.detail.value;
				that.setData({
					XxMobile: a
				});
			},

			bindXxGroupsInput: function(t) {
				var that = this;
				var a = t.detail.value;
				that.setData({
					XxGroups: a
				});
			},

			//线下分数查询提交
			XxSubmit: function() {
				const that = this
				let status = false
				status = that.offlineParameters.some(item => item.is_required == 1 && !item.value) //判断时候有必填项没填
				console.log(status, 'status');
				if (status) {
					uni.showToast({
						title: '请填写完整的查询信息',
						icon: 'none',
						duration: 1500
					});
					return false;
				}
				let data = {}
				that.offlineParameters.forEach(item => {
					Object.keys(item).forEach(key => {
						if (key == 'search_field') {
							data[item['search_field']] = item['value']
						}
					})
				})
				data.nav_id = that.tab
				data.live_id = that.live_id
				app.globalData.util.request({
					url: 'lives_new&r=XxFen',
					data: data,
					cachetime: '0',
					showLoading: true,
					success: function(t) {
						if (t.data.data.s == 1) {
							console.log(t.data.data.XxData[0].name);
							that.setData({
								XxStatus: 1,
								XxData: t.data.data.XxData
							});
						} else {
							uni.showToast({
								title: t.data.data.msg,
								icon: 'none',
								duration: 1500
							});
						}
					}
				});
			},

			olGroupChange: function(data, arr, val, index, item) {
				item.value = this[data][val.detail.value]
				this.$set(this[arr], index, item)
				this.setData({
					onlineLicenseNameGroupIndex: val.detail.value,
					onlineLicenseGroupTemp: this[data][val.detail.value]
				});
				console.log(this[data], 'data');
				console.log(val, 'val');
				console.log(index, 'index');
				console.log(item, 'item');
			},

			olNameChange: function(e) {
				this.setData({
					onlineLicenseName: e.detail.value
				});
			},

			olAgeChange: function(e) {
				this.setData({
					onlineLicenseAge: e.detail.value
				});
			},

			onlineLicenseSubmit: function() {
				var that = this;
				let status = false
				status = that.parameters.some(item => item.is_required == 1 && !item.value) //判断时候有必填项没填
				console.log(status, 'status');
				if (status) {
					uni.showToast({
						title: '请填写完整的查询信息',
						icon: 'none',
						duration: 1500
					});
					return false;
				}
				let data = {}
				that.parameters.forEach(item => {
					Object.keys(item).forEach(key => {
						if (key == 'search_field') {
							data[item['search_field']] = item['value']
						}
					})
				})
				data.nav_id = that.tab
				data.live_id = that.live_id
				app.globalData.util.request({
					url: 'lives_new&r=onlineLicenseSearch',
					data: data,
					cachetime: '0',
					showLoading: true,
					success: function(t) {
						if (t.data.data.s == 1) {
							that.setData({
								olStatus: 1,
								olData: t.data.data.result
							});
						} else {
							uni.showToast({
								title: t.data.data.msg,
								icon: 'none',
								duration: 1500
							});
						}
					}
				});
			},

			// jumpNew: function (e) {
			//     var that = this;
			//     uni.showModal({
			//         title: that.jump_title,
			//         content: that.jump_content,
			//         showCancel: false,
			//         confirmText: '确定',
			//         success(res) {
			//             if (res.confirm) {
			//                 uni.navigateToMiniProgram({
			//                     appId: that.jump_appid,
			//                     path: '/wxz_wzbagent/pages/movie/movie' + '?token=' + that.token,
			//                     success(res) {}
			//                 });
			//             }
			//         }
			//     });
			// },

			bindPickerChange: function(e) {
				var that = this;
				that.setData({
					apply_param_groups: e.currentTarget.dataset.range[e.detail.value],
					groupIndex: e.detail.value,
					isShowGroups: 0
				});
			},

			bindMultiPickerChange: function(e) {
				var temp = this.enroll_fields[e.currentTarget.dataset.index].temp;
				//console.log(e);
				//console.log('value', temp[0][e.detail.value[0]]+temp[1][e.detail.value[1]] );
				this.setData({
					multiIndex: e.detail.value,
					apply_param_linkage_groups: temp[0][e.detail.value[0]] + ',' + temp[1][e.detail.value[1]]
				});
			},

			bindMultiPickerColumnChange: function(e) {
				//console.log('修改的列为', e.detail.column, '，值为', e.detail.value);
				//e.currentTarget.dataset.range;

				var data = {
					multiIndex: this.multiIndex,
					enroll_fields: this.enroll_fields
				};
				data.multiIndex[e.detail.column] = e.detail.value;
				//修改第一列时
				if (e.detail.column == 0) {
					data.enroll_fields[e.currentTarget.dataset.index].temp[1] = e.currentTarget.dataset.datas[1][e
						.detail.value
					];
					console.log('1');
					data.multiIndex[1] = 0;
				}
				this.setData(data);
			},

			commonChange(e, n) {
				console.log(e);
				console.log(n);
				//console.log('radio发生change事件，携带value值为：', e)
				//console.log(e.currentTarget.dataset.name, e.detail.value);
				const data = [];
				if (n) {
					data[n.name] = e.detail.value;
				} else {
					data[e.currentTarget.dataset.name] = e.detail.value;
				}
				console.log(data);
				this.setData(data);
				/*this.setData({
        e['currentTarget'].['dataset']['name']:e.detail.value
    })*/
			},

			checkboxChange1(e) {
				console.log('checkbox发生change事件，携带value值为：', e.detail.value.join(','));
				this.setData({
					apply_param_form_checkbox: e.detail.value.join(',')
				});
			},

			//提交报名
			applySubmit: function() {
				var that = this;
				var enroll_fields = that.enroll_fields;
				//禁止为空
				var SubmitData = [];
				for (var i = 0; i < enroll_fields.length; i++) {
					if (enroll_fields[i]['show'] == 1) {
						if (
							enroll_fields[i]['name'] !== 'images' &&
							enroll_fields[i]['name'] !== 'video' &&
							enroll_fields[i]['name'] !== 'pay' &&
							enroll_fields[i]['name'] !== 'images_other' &&
							enroll_fields[i]['name'] !== 'images_other2' &&
							enroll_fields[i]['name'] !== 'video_other' &&
							enroll_fields[i]['name'] !== 'music' &&
							enroll_fields[i]['name'] !== 'tel' &&
							enroll_fields[i]['name'] !== 'idnumber'
						) {
							//
							var name = 'apply_param_' + enroll_fields[i]['name'];
							if (enroll_fields[i]['require'] == 1) {
								if (!that[name]) {
									uni.showToast({
										title: enroll_fields[i]['value'] + '不能为空！',
										icon: 'none',
										duration: 1500
									});
									SubmitData = [];
									return false;
								}
							}
							SubmitData[enroll_fields[i]['name']] = that[name];
						}
						//视频图片什么得不能为空：
						if (enroll_fields[i]['name'] == 'images' && !that.apply_param_images[0] && enroll_fields[i][
								'require'
							] == '1') {
							uni.showToast({
								title: enroll_fields[i]['value'] + '不能为空！',
								icon: 'none',
								duration: 1500
							});
							SubmitData = [];
							return false;
						}
						if (that.tab == 32321) {
							if (that.apply_param_images.length != 3 && enroll_fields[i]['require'] == '1') {
								uni.showToast({
									title: '请上传3张照片',
									icon: 'none',
									duration: 1500
								});
								SubmitData = [];
								return false;
							}
						}
						if (enroll_fields[i]['name'] == 'video' && !that.apply_param_video_url && enroll_fields[i][
								'require'
							] == '1') {
							uni.showToast({
								title: enroll_fields[i]['value'] + '不能为空！',
								icon: 'none',
								duration: 1500
							});
							SubmitData = [];
							return false;
						}
						if (enroll_fields[i]['name'] == 'images_other' && !that.apply_param_images_other[0] &&
							enroll_fields[i]['require'] == '1') {
							uni.showToast({
								title: enroll_fields[i]['value'] + '不能为空！',
								icon: 'none',
								duration: 1500
							});
							SubmitData = [];
							return false;
						}
						if (enroll_fields[i]['name'] == 'images_other2' && !that.apply_param_images_other2[0] &&
							enroll_fields[i]['require'] == '1') {
							uni.showToast({
								title: enroll_fields[i]['value'] + '不能为空！',
								icon: 'none',
								duration: 1500
							});
							SubmitData = [];
							return false;
						}
						if (enroll_fields[i]['name'] == 'video_other' && !that.apply_param_video_other_url &&
							enroll_fields[i]['require'] == '1') {
							uni.showToast({
								title: enroll_fields[i]['value'] + '不能为空！',
								icon: 'none',
								duration: 1500
							});
							SubmitData = [];
							return false;
						}
						if (enroll_fields[i]['name'] == 'video_other2' && !that.apply_param_video_other2_url &&
							enroll_fields[i]['require'] == '1') {
							uni.showToast({
								title: enroll_fields[i]['value'] + '不能为空！',
								icon: 'none',
								duration: 1500
							});
							SubmitData = [];
							return false;
						}
						if (enroll_fields[i]['name'] == 'form_radio' && !that.apply_param_form_radio && enroll_fields[
								i]['require'] == '1') {
							uni.showToast({
								title: enroll_fields[i]['value'] + '不能为空！',
								icon: 'none',
								duration: 1500
							});
							SubmitData = [];
							return false;
						}
						if (enroll_fields[i]['name'] == 'pay' && !that.apply_param_pay && enroll_fields[i][
								'require'
							] == '1') {
							uni.showToast({
								title: '请选择报名费用',
								icon: 'none',
								duration: 1500
							});
							SubmitData = [];
							return false;
						}
						if (enroll_fields[i]['name'] == 'form_checkbox' && !that.apply_param_form_checkbox &&
							enroll_fields[i]['require'] == '1') {
							uni.showToast({
								title: enroll_fields[i]['value'] + '不能为空！',
								icon: 'none',
								duration: 1500
							});
							SubmitData = [];
							return false;
						}
						if (enroll_fields[i]['name'] == 'agreement' && !that.isAgree && enroll_fields[i]['show'] ==
							1) {
							uni.showToast({
								title: '你尚未同意报名协议',
								icon: 'none',
								duration: 1500
							});
							SubmitData = [];
							return false;
						}
						if (enroll_fields[i]['name'] == 'music' && !that.apply_param_music_url && enroll_fields[i][
								'require'
							] == '1') {
							uni.showToast({
								title: enroll_fields[i]['value'] + '不能为空！',
								icon: 'none',
								duration: 1500
							});
							SubmitData = [];
							return false;
						}
						if (enroll_fields[i]['name'] == 'tel' && that.apply_param_tel.length != 11 && enroll_fields[i][
								'require'
							] == '1') {
							uni.showToast({
								title: '请输入11位手机号',
								icon: 'none',
								duration: 1500
							});
							SubmitData = [];
							return false;
						}
						if (enroll_fields[i]['name'] == 'idnumber' && that.apply_param_idnumber.length != 18 &&
							enroll_fields[i]['require'] == '1') {
							uni.showToast({
								title: '请输入18位身份证号',
								icon: 'none',
								duration: 1500
							});
							SubmitData = [];
							return false;
						}
					}
				}
				SubmitData['nav_id'] = that.tab;
				SubmitData['rid'] = that.rid;
				SubmitData['live_id'] = that.live_id;
				SubmitData['uniacid'] = that.live.uniacid;
				SubmitData['video'] = that.apply_param_video_url;
				SubmitData['video_other'] = that.apply_param_video_other_url;
				SubmitData['video_other2'] = that.apply_param_video_other2_url;
				SubmitData['form_radio'] = that.apply_param_form_radio;
				SubmitData['form_checkbox'] = that.apply_param_form_checkbox;
				SubmitData['tel'] = that.apply_param_tel;
				SubmitData['idnumber'] = that.apply_param_idnumber;
				if (that.apply_param_region) {
					SubmitData['region'] = that.apply_param_region[0] + ',' + that.apply_param_region[1] + ',' + that
						.apply_param_region[2];
				}
				SubmitData['images_other'] = JSON.stringify(that.apply_param_images_other);
				SubmitData['images_other2'] = JSON.stringify(that.apply_param_images_other2);
				SubmitData['music'] = that.apply_param_music_url;
				SubmitData['uid'] = uni.getStorageSync('uid');
				if (that.apply_param_images[0]) {
					SubmitData['images'] = that.apply_param_images[0];
				}
				if (that.apply_param_images[1]) {
					SubmitData['images1'] = that.apply_param_images[1];
				}
				if (that.apply_param_images[2]) {
					SubmitData['images2'] = that.apply_param_images[2];
				}
				if (that.apply_param_images[3]) {
					SubmitData['images3'] = that.apply_param_images[3];
				}
				if (that.apply_param_images[4]) {
					SubmitData['images4'] = that.apply_param_images[4];
				}
				if (that.apply_param_bao_group) {
					SubmitData['bao_group'] = that.apply_param_bao_group;
				}
				if (that.apply_param_groups) {
					SubmitData['groups'] = that.apply_param_groups;
				}
				if (that.apply_param_groups) {
					SubmitData['linkage_groups'] = that.apply_param_linkage_groups;
				}
				var pay_money = that.apply_param_pay;
				if (pay_money) {
					pay_money = parseFloat(pay_money.replace(/[^\d]/g, ' '));
				}
				/*判断是否是付费报名 */
				if (pay_money > 0) {
					//判断是否授权登录
					var uid = uni.getStorageSync('uid');
					if (!uid) {
						//跳转到授权页
						uni.redirectTo({
							url: '/wxz_wzbagent/pages/login/login?callback_url=/pages/movie/movie&token=' +
								that.token
						});
					} else {
						// #ifdef H5
						// if(isWeiXin()){
						let wxopenid = uni.getStorageSync('wxopenid');
						//if(wxopenid){
						app.globalData.util.request({
							url: isWeiXin() ? 'lives_new&r=payEnroll' : 'ali&r=payEnroll',
							data: {
								rid: that.live.rid,
								live_id: that.live.id,
								uid: uid,
								uniacid: isWeiXin() ? that.live.uniacid : that.live.uniacid_ali,
								wxapp_id: that.wxapp_id,
								nav_id: that.tab,
								vote_name: SubmitData['name'],
								vote_mobile: SubmitData['tel'],
								pay_money: pay_money,
								wxopenid
							},
							cachetime: '0',
							showLoading: true,
							success: function(t) {
								//let appid=getApp().globalData.siteInfo.appid;
								if (isWeiXin()) {
									var pay_params = t.data.data.pay_params;
									jWeiXin.config({
										debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
										appId: pay_params.appId, // 必填，公众号的唯一标识
										timestamp: pay_params.timeStamp, // 必填，生成签名的时间戳
										nonceStr: pay_params.nonceStr, // 必填，生成签名的随机串
										signature: pay_params.paySign, // 必填，签名，见附录1
										jsApiList: ['chooseWXPay'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
									});
									jWeiXin.ready(function() {
										jWeiXin.checkJsApi({
											jsApiList: [
												'chooseWXPay'
											], // 需要检测的JS接口列表，所有JS接口列表见附录2,
											success: function(res) {
												console.log('checkjsapi Success');
												console.log(res);
											},
											fail: function(res) {
												console.log('res');
												console.log(res);
											}
										});
										jWeiXin.chooseWXPay({
											timestamp: pay_params
												.timeStamp, // 支付签名时间戳，注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符
											nonceStr: pay_params
												.nonceStr, // 支付签名随机串，不长于 32 位
											package: pay_params
												.package, // 统一支付接口返回的prepay_id参数值，提交格式如：prepay_id=***）
											signType: pay_params
												.signType, // 签名方式，默认为'SHA1'，使用新版支付需传入'MD5'
											paySign: pay_params.paySign, // 支付签名
											success: function(res) {
												SubmitData['logsid'] = t.data.data
													.logsid;
												that.ti_bao(SubmitData);
											},
											cancel: function(res) {
												console.log(res)
											},
											fail: function(res) {
												uni.showToast({
													title: '支付失败!',
													icon: 'none',
													duration: 1500
												});
												console.log(res);
											}
										});
									});

									jWeiXin.error(function(res) {
										console.log(res);
									});
								} else {
									that.tradePay(t.data.data.pay_params.alipay_trade_create_response
										.trade_no, 'enroll', SubmitData)
								}
							}
						});
						//}
						// else if(!wxopenid){
						// 			location.reload();
						// 		}
						// }
						// #endif
						// #ifndef H5
						uni.login({
							success: function(res) {
								app.globalData.util.request({
									url: 'lives_new&r=payEnroll',
									data: {
										rid: that.live.rid,
										live_id: that.live.id,
										uid: uid,
										uniacid: that.live.uniacid,
										wxapp_id: that.wxapp_id,
										nav_id: that.tab,
										vote_name: SubmitData['name'],
										vote_mobile: SubmitData['tel'],
										pay_money: pay_money,
										code: res.code
									},
									cachetime: '0',
									showLoading: true,
									success: function(t) {
										var pay_params = t.data.data.pay_params;
										uni.requestPayment({
											timeStamp: pay_params.timeStamp,
											nonceStr: pay_params.nonceStr,
											package: pay_params.package,
											signType: pay_params.signType,
											paySign: pay_params.paySign,
											success: function(res) {
												SubmitData['logsid'] = t.data.data
													.logsid;
												that.ti_bao(SubmitData);
											},
											fail: function(res) {
												uni.showToast({
													title: '支付失败!',
													icon: 'none',
													duration: 1500
												});
											},
											complete: function(res) {}
										});
									}
								});
							}
						});
						// #endif
					}
				} else {
					that.ti_bao(SubmitData);
				}
			},

			ti_bao: function(SubmitData) {
				var that = this;
				//提交请求
				console.log(SubmitData);
				app.globalData.util.request({
					url: 'lives_new&r=enroll',
					data: SubmitData,
					method: 'POST',
					cachetime: '0',
					showLoading: true,
					success: function(t) {
						if (t.data.data.s) {
							that.setData({
								enroll_status: 1,
								enroll_sort: t.data.data.enroll_sort
							});
							uni.showToast({
								title: t.data.data.msg,
								icon: 'none',
								duration: 1500
							});
						} else {
							uni.showToast({
								title: t.data.data.msg,
								icon: 'none',
								duration: 1500
							});
						}
					}
				});
			},

			closeClick: function() {
				let live_gz_status = 'live.live_gz_status';
				this[live.live_gz_status] = false;
			},

			getPhotoLiveData: function(nav_id, page) {
				let that = this;
				app.globalData.util.request({
					url: 'lives_new&r=getPhotoLiveData',
					data: {
						nav_id: nav_id,
						page: page
					},
					cachetime: '0',
					showLoading: true,
					success: function(t) {
						if (page == 1) {
							var photoLiveData = t.data.data.photoLiveData;
						} else {
							var photoLiveData = that.photoLiveData;
							photoLiveData = photoLiveData.concat(t.data.data.photoLiveData);
						}
						if (t.data.errno == 0) {
							that.setData({
								photoLiveData: photoLiveData,
								photoLivePage: page
							});
						}
					}
				});
			},

			photoLivePreview: function(event) {
				console.log(event);
				let currentUrl = event.currentTarget.dataset.url;
				let urls = [currentUrl];
				uni.previewImage({
					current: currentUrl,
					urls: urls
				});
			},

			showAgreementFun: function(event) {
				this.setData({
					showAgreement: event.currentTarget.dataset.show
				});
			},

			checkboxChange: function(event) {
				this.setData({
					isAgree: event.detail.value[0]
				});
			},

			bindGetUserInfo: function(e) {
				// var that = this;
				// uni.getUserProfile({
				//     desc: '用于完善会员资料',
				//     // 声明获取用户个人信息后的用途，后续会展示在弹窗中，请谨慎填写
				//     success: (res) => {
				//         //存入信息
				//         uni.setStorageSync('userInfo', res.userInfo);
				//         that.setData({
				//             userInfoCheck: 1
				//         });
				//         //授权成功后,把信息插入数据库获取uid
				//         that.login__(res);
				//     }
				// });
			},

			login__: function(info) {
				//#ifdef H5
				if (isWeiXin()) {
					let wxopenid = uni.getStorageSync('wxopenid');
					if (wxopenid) {
						app.globalData.util.request({
							url: 'login_new',
							data: {
								token: that.token,
								info: info,
								wxopenid
							},
							cachetime: '0',
							showLoading: true,
							success: function(t) {
								if (t.data.errno == 0) {
									uni.setStorageSync('uid', t.data.data.uid);
								}
							}
						});
					} else if (!wxopenid) {
						location.reload();
					}
				}
				//#endif
				//#ifndef H5
				var that = this;
				uni.login({
					success(res) {
						if (res.code) {
							app.globalData.util.request({
								url: 'login_new',
								data: {
									token: that.token,
									code: res.code,
									info: info
								},
								cachetime: '0',
								showLoading: true,
								success: function(t) {
									if (t.data.errno == 0) {
										uni.setStorageSync('uid', t.data.data.uid);
									}
								}
							});
						} else {
							console.log('登录失败！' + res.errMsg);
						}
					}
				});
				//#endif
			},

			gotoVoteInfo(t) {
				let xuanId = t.currentTarget.dataset.xuanid;
				let token = t.currentTarget.dataset.token;
				uni.navigateTo({
					url: '/wxz_wzbagent/pages/vote/vote_info?xuan_id=' + xuanId + '&token=' + token
				});
			},
			getMallData(goods_ids) {
				let that = this;
				mallRequest({
					url: '?s=/api/goods/getGoodsListFromIds&ids=' + goods_ids,
					data: []
				}).then((res) => {
					console.log(res.data.list, '------getMallData------');
					if (res.data.list) {
						that.setData({
							goodsList: res.data.list
							//recommendGoods:res.list[0],
							//mallShow:'goods_list'
						});

						that.getMallUserData();
						//that.randRecommend(res.list);
					}
				});
			},
			showGoodsInfo(t) {
				let that = this;
				let goodsId = t.currentTarget.dataset.goodsid;
				mallRequest({
					url: '?s=/api/goods/detail&goodsId=' + goodsId,
					data: []
				}).then((res) => {
					if (res.data.detail) {
						that.setData({
							goodsInfo: res.data.detail,
							mallShow: 'goods_info'
						}); 
						uni.pageScrollTo({
							scrollTop: 0,
							duration: 300
						});
					}
				});
			},
		
			buyStep1(t) {
				let that = this;
				let goodsInfo = t.currentTarget.dataset.goods;
				console.log(goodsInfo);
				that.setData({
					showGoodsBox: 1,
					boxGoodsInfo: goodsInfo,
					boxGoodsNums: 1
				});
			},

			closeGoodsBox() {
				this.setData({
					showGoodsBox: false
				});
			},

			//改变商品数量
			bindGoodsNums (t) {
				var e = t.currentTarget.dataset.type;
				var a = this.boxGoodsNums;
				-1 == e ? a-- : a++;
				if (a < 1) {
					a = 1;
				}
				this.setData({
					boxGoodsNums: a
				});
			},

			//输入框改变商品数量
			bindChangeGoodsNums (t) {
				var e = t.detail.value;
				e = parseInt(e);
				this.setData({
					boxGoodsNums: e
				});
			},

			buyNow(t) {
				let that = this;
				let goodsId = that.boxGoodsInfo.goods_id;
				let goodsNum = that.boxGoodsNums ? that.boxGoodsNums : 1;
				//console.log(goodsId,goodsNum);
				uni.navigateToMiniProgram({
					appId: that.live.mall_appid,
					path: 'pages/checkoutLive/index?mode=buyNow&goodsId=' + goodsId + '&goodsSkuId=0&goodsNum=' + goodsNum + '&liveId=' + that.live.id
				});
			},

			gotoUsercenter() {
				let that = this;
				uni.navigateToMiniProgram({
					appId: that.live.mall_appid,
					path: '/pages/order/index?live_id=' + that.live.id
				});
			},

			gotoMallHome() {
				let that = this;
				uni.navigateToMiniProgram({
					appId: that.live.mall_appid,
					path: '/pages/index/index?live_id=' + that.live.id
				});
			},

			showGoodsList() {
				this.setData({
					mallShow: 'goods_list'
				});
				uni.pageScrollTo({
					scrollTop: 0,
					duration: 300
				});
			},

			showGoodsRecommend() {
				this.setData({
					mallShow: 'recommend'
				});
			},

			getMallUserData() {
				// wx.getStorageSync('unionid');
				let that = this;
				mallRequest({
					url: '?s=/api/user/info',
					data: []
				}).then((res) => {
					if (res.data.userInfo) {
						console.log(res.data.userInfo);
						that.setData({
							mallUser: res.data.userInfo
						});
					}
				});
			},

			pointsToVotes: function (t) {
				this.getMallUserData();
				let that = this;
				let s = getApp();
				uni.showModal({
					title: '积分兑换-可用积分:' + that.mallUser.points,
					content: '',
					editable: true,
					placeholderText: '请输入需要兑换的票数',
					success(res) {
						if (res.confirm) {
							var votes = parseInt(res.content);
							var needPoints = votes * 10;
							if (that.mallUser.points < needPoints) {
								uni.showToast({
									title: '积分不足，请前往商场兑换！',
									icon: 'none',
									duration: 1500
								});
								return false;
							} else if (votes > 0 && needPoints > 0) {
								mallRequest({
									url: '?s=/api/user/liveExchangePoint&num=' + needPoints + '&remark=积分兑换免费票',
									data: []
								}).then((res) => {
									//兑换成功
									if (res.status == 200) {
										s.globalData.util.request({
											url: 'lives_new&r=incVoteNumber',
											data: {
												votes: votes
											},
											cachetime: '0',
											showLoading: true,
											success: function (t) {
												if (t.data.data.s && t.data.data.ad_vote_number) {
													that.setData({
														ad_vote_number: t.data.data.ad_vote_number
													});
													uni.showToast({
														title: t.data.data.msg,
														icon: 'none',
														duration: 1500
													});
												}
											}
										});
									}
								});
								that.getMallUserData();
							} else {
								uni.showToast({
									title: '操作失败，参数有误',
									icon: 'none',
									duration: 1500
								});
							}
						}
					}
				});
				return false;
			},

			applyUploadDocument() { 
				var that = this;
				uni.chooseFile({ //chooseMessageFile
					count: 1,
					type: 'file',
					success(a) {
						uni.showLoading({title: '上传中',mask:true});
						uni.uploadFile({
							url: app.globalData.util.url('lives&r=upload_video'),
							filePath: a.tempFiles[0].path,
							name: 'file',
							header: {
								//'Content-Type': 'multipart/form-data'
							},
							showLoading: true,
							success: function(t) {
								var data = JSON.parse(t.data);
								if (data.data.s) {
									that.setData({
										document_url: data.data.video_url
									});
										uni.hideLoading();
									//console.log(that.document_url);
								} else {
									uni.showToast({
										title: data.data.msg,
										icon: 'none',
										duration: 1500
									});
								}
							},
							fail: function(t) {
								console.log(t);
							}
						});
					}
				});
			},

			showAgreementFun() {
				console.log('占位：函数 showAgreementFun 未声明');
			}
		}
	};
</script>
<style>
	@import './movie.css';
</style>